From d4de243e3b2b1487371c04f80661559fc780de50 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 9 May 2021 23:09:48 +0200 Subject: [PATCH] ci: always run on release for version branches but don't push images Signed-off-by: Jens Langhammer --- .github/workflows/release.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6112af90d..29fc16557 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,6 +3,9 @@ name: authentik-on-release on: release: types: [published, created] + push: + branches: + - version-* jobs: # Build @@ -25,7 +28,7 @@ jobs: - name: Building Docker Image uses: docker/build-push-action@v2 with: - push: true + push: ${{ github.event_name == 'release' }} tags: | beryju/authentik:2021.5.1-rc4, beryju/authentik:latest, @@ -58,7 +61,7 @@ jobs: - name: Building Docker Image uses: docker/build-push-action@v2 with: - push: true + push: ${{ github.event_name == 'release' }} tags: | beryju/authentik-proxy:2021.5.1-rc4, beryju/authentik-proxy:latest, @@ -92,7 +95,7 @@ jobs: - name: Building Docker Image uses: docker/build-push-action@v2 with: - push: true + push: ${{ github.event_name == 'release' }} tags: | beryju/authentik-ldap:2021.5.1-rc4, beryju/authentik-ldap:latest, @@ -102,6 +105,7 @@ jobs: file: outpost/ldap.Dockerfile platforms: linux/amd64,linux/arm64,linux/arm test-release: + if: ${{ github.event_name == 'release' }} needs: - build-server - build-proxy @@ -119,6 +123,7 @@ jobs: docker-compose start postgresql redis docker-compose run -u root --entrypoint /bin/bash server -c "pip install --no-cache -r requirements-dev.txt && ./manage.py test authentik" sentry-release: + if: ${{ github.event_name == 'release' }} needs: - test-release runs-on: ubuntu-latest