ci: only build stable images when non-rc version

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-06-15 18:40:42 +02:00
parent e8978adc1b
commit 973f14d911
1 changed files with 6 additions and 3 deletions

View File

@ -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