From 973f14d91145fb64939062e8d3312a577d34f9cd Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 15 Jun 2021 18:40:42 +0200 Subject: [PATCH] ci: only build stable images when non-rc version Signed-off-by: Jens Langhammer --- .github/workflows/release.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 090bdd19e..4a3a82b28 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,8 +41,9 @@ jobs: context: . - name: Building Docker Image (stable) uses: docker/build-push-action@v2 + if: ${{ github.event_name == 'release' && !contains('2021.6.1-rc5', 'rc') }} with: - push: ${{ github.event_name == 'release' && !contains('2021.6.1-rc5', 'rc') }} + push: true tags: | beryju/authentik:stable, ghcr.io/goauthentik/server:stable @@ -83,8 +84,9 @@ jobs: platforms: linux/amd64,linux/arm64 - name: Building Docker Image (stable) uses: docker/build-push-action@v2 + if: ${{ github.event_name == 'release' && !contains('2021.6.1-rc5', 'rc') }} with: - push: ${{ github.event_name == 'release' && !contains('2021.6.1-rc5', 'rc') }} + push: true tags: | beryju/authentik-proxy:stable, ghcr.io/goauthentik/proxy:stable @@ -125,8 +127,9 @@ jobs: platforms: linux/amd64,linux/arm64 - name: Building Docker Image (stable) uses: docker/build-push-action@v2 + if: ${{ github.event_name == 'release' && !contains('2021.6.1-rc5', 'rc') }} with: - push: ${{ github.event_name == 'release' && !contains('2021.6.1-rc5', 'rc') }} + push: true tags: | beryju/authentik-ldap:stable, ghcr.io/goauthentik/ldap:stable