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: |