diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index 1cafd7511ed..21f6fbbe792 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -234,7 +234,7 @@ jobs: ${{ github.repository }} ghcr.io/${{ github.repository }} flavor: | - latest=${{ startsWith(github.ref, 'refs/tags/') }} + latest=${{ startsWith(github.ref, 'refs/tags/') && !endsWith(github.ref, '-rc') }} tags: | # define default branch type=edge,branch=master @@ -343,7 +343,7 @@ jobs: ${{ github.repository }} ghcr.io/${{ github.repository }} flavor: | - latest=${{ startsWith(github.ref, 'refs/tags/') }} + latest=${{ startsWith(github.ref, 'refs/tags/') && !endsWith(github.ref, '-rc') }} suffix=-legacy,onlatest=true tags: | # define default branch @@ -448,7 +448,7 @@ jobs: release: name: 4️⃣ Release - if: startsWith(github.ref, 'refs/tags/') + if: startsWith(github.ref, 'refs/tags/') && !endsWith(github.ref, '-rc') needs: - createArtifact runs-on: ubuntu-latest