chore: changed trigger to follow release (#4163)

* fix: changed trigger to follow release

* fix: changed variable trigger
This commit is contained in:
Christian Jakob 2022-08-11 11:28:01 +02:00 committed by GitHub
parent 4014c017fa
commit 9bf656deec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,10 @@
name: "ZITADEL e2e Tests"
on:
release:
types: [created]
workflow_run:
workflows: [ZITADEL Release]
types:
- completed
workflow_dispatch:
inputs:
releaseversion:
@ -24,8 +26,8 @@ jobs:
- name: Set TAG env manual trigger
if: github.event_name == 'workflow_dispatch'
run: echo "ZITADEL_IMAGE=${ZITADEL_IMAGE_REGISTRY}:${{ github.event.inputs.releaseversion }}" >> $GITHUB_ENV
- name: Set TAG env on release
if: github.event_name == 'release'
- name: Set TAG env on ZITADEL release
if: github.event_name == 'workflow_run'
run: echo "ZITADEL_IMAGE=${ZITADEL_IMAGE_REGISTRY}:${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1