From 78144d6975f2381e2f109960e310ecb34b35bedc Mon Sep 17 00:00:00 2001 From: Tanguy Rossel Date: Thu, 24 Oct 2024 09:19:09 +0200 Subject: [PATCH] fix(CI): access to env vars --- .github/workflows/publish_docker.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish_docker.yaml b/.github/workflows/publish_docker.yaml index 9f908ee..cf96375 100644 --- a/.github/workflows/publish_docker.yaml +++ b/.github/workflows/publish_docker.yaml @@ -26,14 +26,14 @@ jobs: - uses: actions/checkout@v4 - uses: docker/login-action@v3 with: - registry: ${DOCKER_REGISTRY} + registry: ${{ env.DOCKER_REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push ngv uses: docker/build-push-action@v6 with: push: true - tags: ${DOCKER_REGISTRY}/${DOCKER_IMG_NAME}:${DOCKER_TAG} + tags: ${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_IMG_NAME }}:${{ env.DOCKER_TAG }} - name: Update images sha id: get_image_sha run: echo "img_sha=$(docker inspect --format='{{index .RepoDigests 0}}' '${DOCKER_REGISTRY}/${DOCKER_IMG_NAME}:${DOCKER_TAG}' | cut -d':' -f2)" >> $GITHUB_OUTPUT;