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"