From f92e90d927ff7c366714da49681404155390942f Mon Sep 17 00:00:00 2001 From: Pablo Castellano Date: Thu, 20 Jun 2024 14:41:19 +0200 Subject: [PATCH] ci: change docker image tagging - latest will be used for manual releases (instead of any push to master) - require semver --- .github/workflows/deploy-staging.yml | 1 - .github/workflows/release.yml | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index edc2c1a..d8682cf 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -56,7 +56,6 @@ jobs: images: blossomlabs/blobscan-indexer tags: | type=ref,event=branch - type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }} - name: Login to DockerHub if: github.event_name != 'pull_request' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5fa98c8..3b31c9a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,6 @@ name: Release new version and deploy production on: push: tags: - - "v*" env: CARGO_TERM_COLOR: always @@ -56,8 +55,7 @@ jobs: with: images: blossomlabs/blobscan-indexer tags: | - type=ref,event=tag - type=raw,value=stable + type=semver,pattern={{version}} - name: Login to DockerHub if: github.event_name != 'pull_request'