This commit is contained in:
2023-11-20 13:48:14 +01:00
parent 41aae2641a
commit 99250bfbdb
3 changed files with 59 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
name: ci/cd to build and push docker image in private registry
name: ci/cd to build and push docker image debian_runner in private registry
#https://docs.docker.com/build/ci/github-actions/push-multi-registries/
#https://www.devsync.se/ci/cd/docker/2023/10/27/gitea-runner-build-docker-containers.html
@@ -18,7 +18,7 @@ jobs:
# container: node:16-bullseye
runs-on: debian-runner
container:
image: ${{ vars.REGISTRY_DOCKER }}/${{ vars.DOCKER_IMAGE_NAME }}:latest
image: ${{ vars.REGISTRY_DOCKER }}/${{ vars.DOCKER_IMAGE_RUNNER }}:latest
credentials:
username: ${{ secrets.REGISTRY_DOCKER_USER }}
password: ${{ secrets.REGISTRY_DOCKER_PASS }}
@@ -46,7 +46,7 @@ jobs:
with:
context: .
push: true
tags: ${{ vars.REGISTRY_DOCKER }}/${{ vars.DOCKER_IMAGE_NAME }}:latest,${{ vars.REGISTRY_DOCKER }}/${{ vars.DOCKER_IMAGE_NAME }}:${{ gitea.ref_name }}
tags: ${{ vars.REGISTRY_DOCKER }}/${{ vars.DOCKER_IMAGE_RUNNER }}:latest,${{ vars.REGISTRY_DOCKER }}/${{ vars.DOCKER_IMAGE_RUNNER }}:${{ gitea.ref_name }}
- name: Output
run: echo "Push on ${{ vars.REGISTRY_DOCKER }} image ${{ vars.DOCKER_IMAGE_NAME }} tag ${{ gitea.ref_name }}"
run: echo "Runner push on ${{ vars.REGISTRY_DOCKER }} image ${{ vars.DOCKER_IMAGE_RUNNER }} tag ${{ gitea.ref_name }}"