diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index b86cf5f34..17a4287d3 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -3,9 +3,6 @@ name: authentik-on-release on: release: types: [published, created] - push: - branches: - - version-* jobs: # Build @@ -142,15 +139,13 @@ jobs: - uses: actions/checkout@v2 - name: Run test suite in final docker images run: | - sudo apt-get install -y pwgen - echo "PG_PASS=$(pwgen 40 1)" >> .env - echo "AUTHENTIK_SECRET_KEY=$(pwgen 50 1)" >> .env + echo "PG_PASS=$(openssl rand -base64 32)" >> .env + echo "AUTHENTIK_SECRET_KEY=$(openssl rand -base64 32)" >> .env docker-compose pull -q docker-compose up --no-start docker-compose start postgresql redis docker-compose run -u root server test sentry-release: - if: ${{ github.event_name == 'release' }} needs: - test-release runs-on: ubuntu-latest diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index 0545d5082..e61ff3c63 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -13,12 +13,11 @@ jobs: - uses: actions/checkout@v2 - name: Pre-release test run: | - sudo apt-get install -y pwgen + docker-compose pull -q echo "AUTHENTIK_IMAGE=testing" >> .env echo "AUTHENTIK_TAG=latest" >> .env - echo "PG_PASS=$(pwgen 40 1)" >> .env - echo "AUTHENTIK_SECRET_KEY=$(pwgen 50 1)" >> .env - docker-compose pull -q + echo "PG_PASS=$(openssl rand -base64 32)" >> .env + echo "AUTHENTIK_SECRET_KEY=$(openssl rand -base64 32)" >> .env docker build \ --no-cache \ -t testing:latest \