Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

👷 [maykinmedia/objects-api#463] Add cache job for trivy #141

Merged
merged 2 commits into from
Dec 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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]
Loading