From fa46c3300e0b75d7ed190f140e4109226a3299cf Mon Sep 17 00:00:00 2001 From: giles Date: Fri, 20 Oct 2023 18:39:51 +0100 Subject: [PATCH] building act_runner --- .drone/build.sh | 3 ++- act_runner/Dockerfile | 3 +++ docker-compose.yml | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 act_runner/Dockerfile diff --git a/.drone/build.sh b/.drone/build.sh index 4b16d55..fbda088 100644 --- a/.drone/build.sh +++ b/.drone/build.sh @@ -1,5 +1,6 @@ sleep 10 docker build gitea \ - --build-arg REGISTRY=${REGISTRY_DOMAIN}:${REGISTRY_PORT}/${ROOT}/${NAME}/ \ -t ${REGISTRY_DOMAIN}:${REGISTRY_PORT}/${ROOT}/${NAME}/gitea:$1 +docker build act_runner \ + -t ${REGISTRY_DOMAIN}:${REGISTRY_PORT}/${ROOT}/${NAME}/act_runner:$1 diff --git a/act_runner/Dockerfile b/act_runner/Dockerfile new file mode 100644 index 0000000..d1f6d5f --- /dev/null +++ b/act_runner/Dockerfile @@ -0,0 +1,3 @@ +FROM gitea/act_runner:latest +COPY config.yaml / +CMD ["act_runner", "daemon"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 2f87fad..3784fbc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -38,13 +38,13 @@ services: replicas: 1 restart_policy: condition: any - image: gitea/act_runner:latest + image: ${LOCAL_DOCKER_REGISTRY}act_runner:${TAG} volumes: - /var/run/docker.sock:/var/run/docker.sock networks: - appnet environment: - # - e CONFIG_FILE=/config.yaml \ + - CONFIG_FILE=/config.yaml \ - GITEA_INSTANCE_URL=https://sigyl.com/git/ - GITEA_RUNNER_REGISTRATION_TOKEN=$RUNNER_REGISTRATION_TOKEN - GITEA_RUNNER_NAME="giles-test"