mirror of
https://github.com/actions/actions-runner-controller.git
synced 2026-01-01 06:48:34 +08:00
feat: dind 22.04 runner (#2030)
* feat: dind 22.04 runner
* chore: remove zstd
* chore: remove test
* chore: add missing make targets and bcump
* runner: Add missing iptables package to dind ubuntu 22.04
* feat: use new ids
* feat: use new ids
* Revert "feat: use new ids"
This reverts commit 2e4e2bb6d9.
Co-authored-by: toast-gear <toast-gear@users.noreply.github.com>
Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com>
This commit is contained in:
@@ -3,7 +3,7 @@ DOCKER ?= docker
|
||||
DEFAULT_RUNNER_NAME ?= ${DOCKER_USER}/actions-runner
|
||||
DIND_RUNNER_NAME ?= ${DOCKER_USER}/actions-runner-dind
|
||||
DIND_ROOTLESS_RUNNER_NAME ?= ${DOCKER_USER}/actions-runner-dind-rootless
|
||||
OS_IMAGE ?= ubuntu-20.04
|
||||
OS_IMAGE ?= ubuntu-22.04
|
||||
TARGETPLATFORM ?= $(shell arch)
|
||||
|
||||
RUNNER_VERSION ?= 2.299.1
|
||||
@@ -50,6 +50,7 @@ docker-build-set: check-target-platform
|
||||
${DOCKER} build \
|
||||
--build-arg TARGETPLATFORM=${TARGETPLATFORM} \
|
||||
--build-arg RUNNER_VERSION=${RUNNER_VERSION} \
|
||||
--build-arg RUNNER_CONTAINER_HOOKS_VERSION=${RUNNER_CONTAINER_HOOKS_VERSION} \
|
||||
--build-arg DOCKER_VERSION=${DOCKER_VERSION} \
|
||||
-f actions-runner-dind.${OS_IMAGE}.dockerfile \
|
||||
-t ${DIND_RUNNER_NAME}:${OS_IMAGE} .
|
||||
@@ -60,6 +61,30 @@ docker-build-set: check-target-platform
|
||||
-f actions-runner-dind-rootless.${OS_IMAGE}.dockerfile \
|
||||
-t "${DIND_ROOTLESS_RUNNER_NAME}:${OS_IMAGE}" .
|
||||
|
||||
docker-build-default: check-target-platform
|
||||
${DOCKER} build \
|
||||
--build-arg TARGETPLATFORM=${TARGETPLATFORM} \
|
||||
--build-arg RUNNER_VERSION=${RUNNER_VERSION} \
|
||||
--build-arg RUNNER_CONTAINER_HOOKS_VERSION=${RUNNER_CONTAINER_HOOKS_VERSION} \
|
||||
--build-arg DOCKER_VERSION=${DOCKER_VERSION} \
|
||||
-f actions-runner.${OS_IMAGE}.dockerfile \
|
||||
-t ${DEFAULT_RUNNER_NAME}:${OS_IMAGE} .
|
||||
|
||||
docker-build-dind: check-target-platform
|
||||
${DOCKER} build \
|
||||
--build-arg TARGETPLATFORM=${TARGETPLATFORM} \
|
||||
--build-arg RUNNER_VERSION=${RUNNER_VERSION} \
|
||||
--build-arg RUNNER_CONTAINER_HOOKS_VERSION=${RUNNER_CONTAINER_HOOKS_VERSION} \
|
||||
--build-arg DOCKER_VERSION=${DOCKER_VERSION} \
|
||||
-f actions-runner-dind.${OS_IMAGE}.dockerfile \
|
||||
-t ${DIND_RUNNER_NAME}:${OS_IMAGE} .
|
||||
|
||||
docker-push-default:
|
||||
${DOCKER} push "${DEFAULT_RUNNER_NAME}:${OS_IMAGE}"
|
||||
|
||||
docker-push-dind:
|
||||
${DOCKER} push "${DIND_RUNNER_NAME}:${OS_IMAGE}"
|
||||
|
||||
docker-push-set:
|
||||
${DOCKER} push "${DEFAULT_RUNNER_NAME}:${OS_IMAGE}"
|
||||
${DOCKER} push "${DIND_RUNNER_NAME}:${OS_IMAGE}"
|
||||
|
||||
Reference in New Issue
Block a user