From 87060bee26820226968cb383882deb5fe163fe6d Mon Sep 17 00:00:00 2001 From: Eliot Date: Sun, 19 Jan 2025 15:12:30 +0100 Subject: [PATCH] fix(build): pipeline.yml --- .github/workflows/pipeline.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index d699d9d..8dce9a7 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -88,18 +88,18 @@ jobs: platforms: linux/amd64,linux/arm64/v8 push: ${{ github.event_name != 'pull_request' }} tags: | - ${{ env.REGISTRY_IMAGE }}:${{ env.VERSION }} + ${{ env.REGISTRY_IMAGE }}:${{ env.VERSION || 'latest' }} labels: | org.opencontainers.image.title=${{ github.event.repository.name }} org.opencontainers.image.description=${{ github.event.repository.description }} org.opencontainers.image.url=${{ github.event.repository.html_url }} org.opencontainers.image.revision=${{ github.sha }} - org.opencontainers.image.version=${{ env.VERSION }} + org.opencontainers.image.version=${{ env.VERSION || 'latest' }} cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max build-args: | BUILDTIME=${{ steps.meta.outputs.labels['org.opencontainers.image.created'] }} - VERSION=${{ steps.meta.outputs.labels['org.opencontainers.image.version'] }} + VERSION=${{ steps.meta.outputs.labels['org.opencontainers.image.version'] || 'latest' }} # - name: Sign Docker images # if: github.event_name != 'pull_request'