mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-10 23:43:40 +00:00
dynamic release version
This commit is contained in:
parent
bb850302c6
commit
3de5b3dd39
21
.github/workflows/cypress.yml
vendored
21
.github/workflows/cypress.yml
vendored
@ -5,17 +5,32 @@ on:
|
|||||||
- cron: '*/15 * * * *'
|
- cron: '*/15 * * * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
|
||||||
ZITADEL_IMAGE: ghcr.io/zitadel/zitadel:v2.0.1
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v2
|
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
|
||||||
|
- name: Set TAG env on release
|
||||||
|
if: github.event_name == 'release'
|
||||||
|
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
||||||
- name: Install NPM Modules
|
- name: Install NPM Modules
|
||||||
working-directory: ./console
|
working-directory: ./console
|
||||||
run: npm ci --only=dev
|
run: npm ci --only=dev
|
||||||
- name: Test
|
- name: Test
|
||||||
run: ./e2e/docker-compose.sh run e2e
|
run: ./e2e/docker-compose.sh run e2e
|
||||||
|
env:
|
||||||
|
ZITADEL_IMAGE: ghcr.io/zitadel/zitadel:${RELEASE_VERSION}
|
||||||
|
- name: Archive production tests
|
||||||
|
if: always()
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: production-tests
|
||||||
|
path: |
|
||||||
|
console/cypress/results
|
||||||
|
console/cypress/videos
|
||||||
|
console/cypress/screenshots
|
||||||
|
retention-days: 30
|
||||||
|
Loading…
x
Reference in New Issue
Block a user