forked from mtusi2026/mtusi2026lab7
36 lines
756 B
YAML
36 lines
756 B
YAML
name: Lab 7 application
|
|
on: [push, pull_request]
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
https-smoke:
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 20
|
|
env:
|
|
COMPOSE_PROJECT_NAME: lab7-ci
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Generate disposable PKI and secrets
|
|
run: make init
|
|
|
|
- name: Build and wait for the stack
|
|
run: |
|
|
docker compose config --quiet
|
|
make up
|
|
|
|
- name: Check HTTPS and service identities
|
|
run: make test test-security audit-transport
|
|
|
|
- name: Stop the stack
|
|
if: always()
|
|
run: |
|
|
if test -f .env; then
|
|
docker compose ps --all
|
|
make down
|
|
fi
|