From 5383ae2c19e9406fb4acbc5b623370fa8b3b06b4 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 21 Jun 2021 16:11:30 +0200 Subject: [PATCH] ci: re-tag latest images on stable build instead of building again Signed-off-by: Jens Langhammer --- .github/workflows/release.yml | 45 ++++++++++++++++------------------- 1 file changed, 21 insertions(+), 24 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 84f67e36b..23c7a5776 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,15 +40,14 @@ jobs: platforms: linux/amd64,linux/arm64 context: . - name: Building Docker Image (stable) - uses: docker/build-push-action@v2 if: ${{ github.event_name == 'release' && !contains('2021.6.1', 'rc') }} - with: - push: true - tags: | - beryju/authentik:stable, - ghcr.io/goauthentik/server:stable - platforms: linux/amd64,linux/arm64 - context: . + run: + docker pull beryju/authentik:latest + docker tag beryju/authentik:latest beryju/authentik:stable + docker push beryju/authentik:stable + docker pull ghcr.io/goauthentik/server:latest + docker tag ghcr.io/goauthentik/server:latest ghcr.io/goauthentik/server:stable + docker push ghcr.io/goauthentik/server:stable build-proxy: runs-on: ubuntu-latest steps: @@ -83,15 +82,14 @@ jobs: file: outpost/proxy.Dockerfile 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', 'rc') }} - with: - push: true - tags: | - beryju/authentik-proxy:stable, - ghcr.io/goauthentik/proxy:stable - platforms: linux/amd64,linux/arm64 - context: . + run: + docker pull beryju/authentik-proxy:latest + docker tag beryju/authentik-proxy:latest beryju/authentik-proxy:stable + docker push beryju/authentik-proxy:stable + docker pull ghcr.io/goauthentik/proxy:latest + docker tag ghcr.io/goauthentik/proxy:latest ghcr.io/goauthentik/proxy:stable + docker push ghcr.io/goauthentik/proxy:stable build-ldap: runs-on: ubuntu-latest steps: @@ -126,15 +124,14 @@ jobs: file: outpost/ldap.Dockerfile 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', 'rc') }} - with: - push: true - tags: | - beryju/authentik-ldap:stable, - ghcr.io/goauthentik/ldap:stable - platforms: linux/amd64,linux/arm64 - context: . + run: + docker pull beryju/authentik-ldap:latest + docker tag beryju/authentik-ldap:latest beryju/authentik-ldap:stable + docker push beryju/authentik-ldap:stable + docker pull ghcr.io/goauthentik/ldap:latest + docker tag ghcr.io/goauthentik/ldap:latest ghcr.io/goauthentik/ldap:stable + docker push ghcr.io/goauthentik/ldap:stable test-release: if: ${{ github.event_name == 'release' }} needs: