This commit is contained in:
resonic-user 2025-06-17 18:12:16 +00:00
parent 5a237ad2ab
commit 528527c961

View File

@ -15,60 +15,7 @@ jobs:
reporter: github-check
level: warning
prepare-env:
name: Prepare shared .env files
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Check & show .env source files
run: |
echo "::group::Check backend/.env.test_e2e"
if [ -f backend/.env.test_e2e ]; then
echo "✅ backend/.env.test_e2e gefunden:"
cat backend/.env.test_e2e
else
echo "❌ backend/.env.test_e2e fehlt"
exit 1
fi
echo "::endgroup::"
echo "::group::Check webapp/.env.template"
if [ -f webapp/.env.template ]; then
echo "✅ webapp/.env.template gefunden:"
cat webapp/.env.template
else
echo "❌ webapp/.env.template fehlt"
exit 1
fi
echo "::endgroup::"
- name: Generate final .env files
run: |
cp backend/.env.test_e2e backend/.env
cp webapp/.env.template webapp/.env
- name: Show generated .env files
run: |
echo "::group::backend/.env"
cat backend/.env
echo "::endgroup::"
echo "::group::webapp/.env"
cat webapp/.env
echo "::endgroup::"
- name: Upload .env as artifact
uses: actions/upload-artifact@v4
with:
name: env-files
path: |
${{ github.workspace }}/backend/.env
${{ github.workspace }}/webapp/.env
build-images:
needs: prepare-env
runs-on: ubuntu-latest
strategy:
matrix:
@ -107,7 +54,6 @@ jobs:
path: /tmp/${{ matrix.name }}.tar
cache-environment:
needs: prepare-env
runs-on: ubuntu-latest
outputs:
cache-key: ${{ steps.cache-key.outputs.key }}
@ -175,7 +121,6 @@ jobs:
/opt/cucumber-json-formatter
key: ${{ steps.cache-key.outputs.key }}
verify-environment:
runs-on: ubuntu-latest
needs: [cache-environment]
@ -216,12 +161,6 @@ jobs:
runs-on: ubuntu-latest
needs: [build-images, cache-environment]
steps:
# load .env
- name: Setup .env files (for caching context)
run: |
cp backend/.env.test_e2e backend/.env
cp webapp/.env.template webapp/.env
# install images
- name: Download Docker image artifacts
@ -239,6 +178,21 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Generate final .env files
run: |
cp backend/.env.test_e2e backend/.env
cp webapp/.env.template webapp/.env
- name: Show generated .env files
run: |
echo "::group::backend/.env"
cat backend/.env
echo "::endgroup::"
echo "::group::webapp/.env"
cat webapp/.env
echo "::endgroup::"
- name: Restore full CI cache
id: restore-cache
uses: actions/cache@v4