From 744ed0d5b3911a93f40405375215a8dc3cca5b53 Mon Sep 17 00:00:00 2001 From: Berry den Hartog <38954346+berrydenhartog@users.noreply.github.com> Date: Mon, 24 Jun 2024 07:17:09 +0000 Subject: [PATCH] Fix deploy tag --- .github/workflows/ci.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c8b41045..3812f02e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -168,7 +168,7 @@ jobs: id: meta uses: docker/metadata-action@v5 with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} #TODO(berry): fix on git labels multiple tags env: DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index @@ -179,7 +179,6 @@ jobs: echo "annotations: ${{ steps.meta.outputs.annotations }}" echo "hash: ${{ steps.get_commit_hash.outputs.commit_hash }}" - - name: Build and push Docker image uses: docker/build-push-action@v5 with: @@ -254,9 +253,11 @@ jobs: id: meta uses: docker/metadata-action@v5 with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - env: - DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index + images: "" # make empty to get the correct tag + + - name: print metadata + run: | + echo "tags: ${{ steps.meta.outputs.tags }}" - name: Trigger deployment run: |