From fc3eac9dbc62f88bc13736b992d32d3044affa64 Mon Sep 17 00:00:00 2001 From: Slava <20563034+veaceslavdoina@users.noreply.github.com> Date: Wed, 30 Aug 2023 13:09:52 +0300 Subject: [PATCH] Use latest tag for Tags and Default branch only (#540) --- .github/workflows/docker-dist-tests.yml | 1 + .github/workflows/docker.yml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.github/workflows/docker-dist-tests.yml b/.github/workflows/docker-dist-tests.yml index d322194a..ee25cd10 100644 --- a/.github/workflows/docker-dist-tests.yml +++ b/.github/workflows/docker-dist-tests.yml @@ -26,5 +26,6 @@ jobs: with: nimflags: '-d:disableMarchNative -d:codex_enable_api_debug_peers=true -d:codex_enable_simulated_proof_failures' nat_ip_auto: true + tag_latest: ${{ github.ref_name == github.event.repository.default_branch || startsWith(github.ref, 'refs/tags/') }} tag_suffix: dist-tests secrets: inherit diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index b826b050..fb97c339 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -23,4 +23,6 @@ jobs: build-and-push: name: Build and Push uses: ./.github/workflows/docker-reusable.yml + with: + tag_latest: ${{ github.ref_name == github.event.repository.default_branch || startsWith(github.ref, 'refs/tags/') }} secrets: inherit