Skip to content

More

More #7

Workflow file for this run

name: Demo
on: [push, pull_request]
defaults:
run:
shell: bash
jobs:
build:
name: Build demo
runs-on: ubuntu-22.04
env:
DOCKERIZE_VERSION: v0.6.1
steps:
- uses: actions/checkout@v4
- run: |
podman build -t demo -f securedrop/dockerfiles/focal/python3/DemoDockerfile .
- run: |
# Install wait-for-it
sudo apt-get install --yes wait-for-it
- run: |
function debug() {
# Dump container logs on failure
podman logs demo
exit 1
}
# Start the container in the background
podman run --name=demo -d -t -p 8080:8080 -p 8081:8081 demo
# And wait for both ports to be up!
wait-for-it 127.0.0.1:8080 -t 120 || debug
wait-for-it 127.0.0.1:8081 -t 120 || debug