ci: prepare variables before checking out stable

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-10-07 20:28:12 +02:00
parent f9a180eb1f
commit 155c28d7cd
1 changed files with 8 additions and 8 deletions

View File

@ -133,11 +133,10 @@ jobs:
- uses: actions/setup-python@v2 - uses: actions/setup-python@v2
with: with:
python-version: '3.9' python-version: '3.9'
- name: checkout stable - name: prepare variables
id: ev
run: | run: |
# Copy current, latest config to local python ./scripts/gh_env.py
cp authentik/lib/default.yml local.env.yml
git checkout $(git describe --abbrev=0 --match 'version/*')
- id: cache-pipenv - id: cache-pipenv
uses: actions/cache@v2.1.6 uses: actions/cache@v2.1.6
with: with:
@ -147,12 +146,13 @@ jobs:
env: env:
INSTALL: ${{ steps.cache-pipenv.outputs.cache-hit }} INSTALL: ${{ steps.cache-pipenv.outputs.cache-hit }}
run: scripts/ci_prepare.sh run: scripts/ci_prepare.sh
- name: checkout stable
run: |
# Copy current, latest config to local
cp authentik/lib/default.yml local.env.yml
git checkout $(git describe --abbrev=0 --match 'version/*')
- name: run migrations to stable - name: run migrations to stable
run: pipenv run python -m lifecycle.migrate run: pipenv run python -m lifecycle.migrate
- name: prepare variables
id: ev
run: |
python ./scripts/gh_env.py
- name: checkout current code - name: checkout current code
run: | run: |
set -x set -x