Use latest tag for Tags and Default branch only (#540)

This commit is contained in:
Slava 2023-08-30 13:09:52 +03:00 committed by GitHub
parent 098baf47d1
commit fc3eac9dbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -26,5 +26,6 @@ jobs:
with: with:
nimflags: '-d:disableMarchNative -d:codex_enable_api_debug_peers=true -d:codex_enable_simulated_proof_failures' nimflags: '-d:disableMarchNative -d:codex_enable_api_debug_peers=true -d:codex_enable_simulated_proof_failures'
nat_ip_auto: true nat_ip_auto: true
tag_latest: ${{ github.ref_name == github.event.repository.default_branch || startsWith(github.ref, 'refs/tags/') }}
tag_suffix: dist-tests tag_suffix: dist-tests
secrets: inherit secrets: inherit

View File

@ -23,4 +23,6 @@ jobs:
build-and-push: build-and-push:
name: Build and Push name: Build and Push
uses: ./.github/workflows/docker-reusable.yml uses: ./.github/workflows/docker-reusable.yml
with:
tag_latest: ${{ github.ref_name == github.event.repository.default_branch || startsWith(github.ref, 'refs/tags/') }}
secrets: inherit secrets: inherit