ci: build and push stable tag when rc not in release name

closes #1023

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-06-15 17:34:23 +02:00
parent 42636142fa
commit 3ca8d9c968
1 changed files with 27 additions and 0 deletions

View File

@ -39,6 +39,15 @@ jobs:
ghcr.io/goauthentik/server:latest
platforms: linux/amd64,linux/arm64
context: .
- name: Building Docker Image (stable)
uses: docker/build-push-action@v2
with:
push: ${{ github.event_name == 'release' && !contains('2021.6.1-rc5', 'rc') }}
tags: |
beryju/authentik:stable,
ghcr.io/goauthentik/server:stable
platforms: linux/amd64,linux/arm64
context: .
build-proxy:
runs-on: ubuntu-latest
steps:
@ -72,6 +81,15 @@ jobs:
ghcr.io/goauthentik/proxy:latest
file: outpost/proxy.Dockerfile
platforms: linux/amd64,linux/arm64
- name: Building Docker Image (stable)
uses: docker/build-push-action@v2
with:
push: ${{ github.event_name == 'release' && !contains('2021.6.1-rc5', 'rc') }}
tags: |
beryju/authentik-proxy:stable,
ghcr.io/goauthentik/proxy:stable
platforms: linux/amd64,linux/arm64
context: .
build-ldap:
runs-on: ubuntu-latest
steps:
@ -105,6 +123,15 @@ jobs:
ghcr.io/goauthentik/ldap:latest
file: outpost/ldap.Dockerfile
platforms: linux/amd64,linux/arm64
- name: Building Docker Image (stable)
uses: docker/build-push-action@v2
with:
push: ${{ github.event_name == 'release' && !contains('2021.6.1-rc5', 'rc') }}
tags: |
beryju/authentik-ldap:stable,
ghcr.io/goauthentik/ldap:stable
platforms: linux/amd64,linux/arm64
context: .
test-release:
if: ${{ github.event_name == 'release' }}
needs: