ci: re-tag latest images on stable build instead of building again
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
c0c246edab
commit
5383ae2c19
|
@ -40,15 +40,14 @@ jobs:
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
context: .
|
context: .
|
||||||
- name: Building Docker Image (stable)
|
- name: Building Docker Image (stable)
|
||||||
uses: docker/build-push-action@v2
|
|
||||||
if: ${{ github.event_name == 'release' && !contains('2021.6.1', 'rc') }}
|
if: ${{ github.event_name == 'release' && !contains('2021.6.1', 'rc') }}
|
||||||
with:
|
run:
|
||||||
push: true
|
docker pull beryju/authentik:latest
|
||||||
tags: |
|
docker tag beryju/authentik:latest beryju/authentik:stable
|
||||||
beryju/authentik:stable,
|
docker push beryju/authentik:stable
|
||||||
ghcr.io/goauthentik/server:stable
|
docker pull ghcr.io/goauthentik/server:latest
|
||||||
platforms: linux/amd64,linux/arm64
|
docker tag ghcr.io/goauthentik/server:latest ghcr.io/goauthentik/server:stable
|
||||||
context: .
|
docker push ghcr.io/goauthentik/server:stable
|
||||||
build-proxy:
|
build-proxy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
@ -83,15 +82,14 @@ jobs:
|
||||||
file: outpost/proxy.Dockerfile
|
file: outpost/proxy.Dockerfile
|
||||||
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
|
|
||||||
if: ${{ github.event_name == 'release' && !contains('2021.6.1', 'rc') }}
|
if: ${{ github.event_name == 'release' && !contains('2021.6.1', 'rc') }}
|
||||||
with:
|
run:
|
||||||
push: true
|
docker pull beryju/authentik-proxy:latest
|
||||||
tags: |
|
docker tag beryju/authentik-proxy:latest beryju/authentik-proxy:stable
|
||||||
beryju/authentik-proxy:stable,
|
docker push beryju/authentik-proxy:stable
|
||||||
ghcr.io/goauthentik/proxy:stable
|
docker pull ghcr.io/goauthentik/proxy:latest
|
||||||
platforms: linux/amd64,linux/arm64
|
docker tag ghcr.io/goauthentik/proxy:latest ghcr.io/goauthentik/proxy:stable
|
||||||
context: .
|
docker push ghcr.io/goauthentik/proxy:stable
|
||||||
build-ldap:
|
build-ldap:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
@ -126,15 +124,14 @@ jobs:
|
||||||
file: outpost/ldap.Dockerfile
|
file: outpost/ldap.Dockerfile
|
||||||
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
|
|
||||||
if: ${{ github.event_name == 'release' && !contains('2021.6.1', 'rc') }}
|
if: ${{ github.event_name == 'release' && !contains('2021.6.1', 'rc') }}
|
||||||
with:
|
run:
|
||||||
push: true
|
docker pull beryju/authentik-ldap:latest
|
||||||
tags: |
|
docker tag beryju/authentik-ldap:latest beryju/authentik-ldap:stable
|
||||||
beryju/authentik-ldap:stable,
|
docker push beryju/authentik-ldap:stable
|
||||||
ghcr.io/goauthentik/ldap:stable
|
docker pull ghcr.io/goauthentik/ldap:latest
|
||||||
platforms: linux/amd64,linux/arm64
|
docker tag ghcr.io/goauthentik/ldap:latest ghcr.io/goauthentik/ldap:stable
|
||||||
context: .
|
docker push ghcr.io/goauthentik/ldap:stable
|
||||||
test-release:
|
test-release:
|
||||||
if: ${{ github.event_name == 'release' }}
|
if: ${{ github.event_name == 'release' }}
|
||||||
needs:
|
needs:
|
||||||
|
|
Reference in New Issue