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: . context: .
- name: Building Docker Image (stable) - name: Building Docker Image (stable)
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
if: ${{ github.event_name == 'release' && !contains('2021.6.1-rc5', 'rc') }}
with: with:
push: ${{ github.event_name == 'release' && !contains('2021.6.1-rc5', 'rc') }} push: true
tags: | tags: |
beryju/authentik:stable, beryju/authentik:stable,
ghcr.io/goauthentik/server:stable ghcr.io/goauthentik/server:stable
@ -83,8 +84,9 @@ jobs:
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
- name: Building Docker Image (stable) - name: Building Docker Image (stable)
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
if: ${{ github.event_name == 'release' && !contains('2021.6.1-rc5', 'rc') }}
with: with:
push: ${{ github.event_name == 'release' && !contains('2021.6.1-rc5', 'rc') }} push: true
tags: | tags: |
beryju/authentik-proxy:stable, beryju/authentik-proxy:stable,
ghcr.io/goauthentik/proxy:stable ghcr.io/goauthentik/proxy:stable
@ -125,8 +127,9 @@ jobs:
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
- name: Building Docker Image (stable) - name: Building Docker Image (stable)
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
if: ${{ github.event_name == 'release' && !contains('2021.6.1-rc5', 'rc') }}
with: with:
push: ${{ github.event_name == 'release' && !contains('2021.6.1-rc5', 'rc') }} push: true
tags: | tags: |
beryju/authentik-ldap:stable, beryju/authentik-ldap:stable,
ghcr.io/goauthentik/ldap:stable ghcr.io/goauthentik/ldap:stable