ci: prepare variables before checking out stable
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
f9a180eb1f
commit
155c28d7cd
|
@ -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
|
||||||
|
|
Reference in New Issue