fix e2e workflow (#4133)

* fix e2e workflow

* configure registry once
This commit is contained in:
Elio Bischof 2022-08-05 20:23:10 +02:00 committed by GitHub
parent fc99ec87c5
commit 52f098e6ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,15 +13,17 @@ on:
jobs:
test:
runs-on: ubuntu-20.04
env:
ZITADEL_IMAGE_REGISTRY: 'ghcr.io/zitadel/zitadel'
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set TAG env manual trigger
if: github.event_name == 'workflow_dispatch'
run: echo "RELEASE_VERSION=${{ github.event.inputs.releaseversion }}" >> $GITHUB_ENV
run: echo "ZITADEL_IMAGE=${ZITADEL_IMAGE_REGISTRY}:${{ github.event.inputs.releaseversion }}" >> $GITHUB_ENV
- name: Set TAG env on release
if: github.event_name == 'release'
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
run: echo "ZITADEL_IMAGE=${ZITADEL_IMAGE_REGISTRY}:${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
with:
@ -30,8 +32,6 @@ jobs:
- name: Test
run: docker compose run e2e
working-directory: e2e
env:
ZITADEL_IMAGE: ghcr.io/zitadel/zitadel:${RELEASE_VERSION}
- name: Archive production tests
if: always()
uses: actions/upload-artifact@v2