Skip to content

Commit

Permalink
Merge pull request #141 from maykinmedia/feature/re-enable-trivy
Browse files Browse the repository at this point in the history
👷 [maykinmedia/objects-api#463] Add cache job for trivy
  • Loading branch information
stevenbal authored Dec 24, 2024
2 parents 5b387c8 + 3141895 commit c607f6a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/quick_start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ jobs:
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
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/trivy-db-cache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Call Update Trivy Cache

on:
workflow_dispatch: # Manual trigger for testing purposes
schedule:
- cron: '51 0 * * *' # Run daily

jobs:
call-update-trivy-cache:
uses: maykinmedia/open-api-workflows/.github/workflows/[email protected]

0 comments on commit c607f6a

Please sign in to comment.