Skip to content

👷 Remove unnecessary trivy cache workflow #541

👷 Remove unnecessary trivy cache workflow

👷 Remove unnecessary trivy cache workflow #541

Workflow file for this run

name: quick-start
on: [push]
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Download docker-compose file
# todo replace branch name with master after the change is merge
run: wget https://raw.githubusercontent.com/maykinmedia/objecttypes-api/feature/merge-docker-composes/docker-compose.yml
- name: Start docker containers
run: docker compose up -d --no-build
- name: Wait for migrations to finish
run: |
echo "Waiting for migrations to complete..."
until ! docker compose exec -T web src/manage.py showmigrations | grep -q '\[ \]'; do
echo "Migrations not finished, waiting..."
sleep 3
done
- name: Load fixtures
run: docker compose exec -T web src/manage.py loaddata demodata
- name: Create superuser
run: docker compose exec -T web src/manage.py createsuperuser --username admin --email admin@admin.nl --no-input
- name: Check main page
run: |
curl_status=$(curl -w '%{http_code}' -o /dev/null -s http://localhost:8000/)
if [[ $curl_status != 200 ]]; then
printf "index page responds with $curl_status status" >&2
exit 1
fi