Repair cross-platform lockfile and verify secure production login behind Nginx
This commit is contained in:
@@ -45,6 +45,25 @@ jobs:
|
||||
- name: Package reviewed images
|
||||
if: github.event_name != 'pull_request'
|
||||
run: docker save guestops-api:${{ github.sha }} guestops-worker:${{ github.sha }} | gzip > guestops-images.tar.gz
|
||||
- name: Smoke test production containers and restart persistence
|
||||
env:
|
||||
GUESTOPS_API_IMAGE: guestops-api:${{ github.sha }}
|
||||
GUESTOPS_WORKER_IMAGE: guestops-worker:${{ github.sha }}
|
||||
BOOTSTRAP_EMAIL: ci-owner@example.invalid
|
||||
BOOTSTRAP_HOTEL: CI test hotel
|
||||
run: |
|
||||
export MONGO_ROOT_PASSWORD=$(openssl rand -hex 32)
|
||||
export MONGO_APP_PASSWORD=$(openssl rand -hex 32)
|
||||
export BOOTSTRAP_PASSWORD=$(openssl rand -hex 24)
|
||||
trap 'docker compose down --volumes' EXIT
|
||||
docker compose config --quiet
|
||||
docker compose up -d --no-build
|
||||
curl --retry 30 --retry-delay 2 --retry-all-errors --fail http://127.0.0.1:8080/health
|
||||
docker compose run --rm --no-deps -e BOOTSTRAP_EMAIL -e BOOTSTRAP_HOTEL -e BOOTSTRAP_PASSWORD api --bootstrap
|
||||
python3 tests/production_smoke.py
|
||||
docker compose restart api worker
|
||||
curl --retry 30 --retry-delay 2 --retry-all-errors --fail http://127.0.0.1:8080/health
|
||||
python3 tests/production_smoke.py --read
|
||||
- uses: actions/upload-artifact@v4
|
||||
if: github.event_name != 'pull_request'
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user