Skip to content

Commit

Permalink
⚙️ config(ci): Lint compose config with backup functionality.
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed Jan 31, 2025
1 parent 3032178 commit 14229c2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions .deploy/backup-retention-policy/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BACKUP_RETENTION_POLICY_SCHEDULE="<CRONJOB-SCHEDULE>"
3 changes: 3 additions & 0 deletions .deploy/backup/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
BACKUP_KEY="<AGE-PUBLIC-KEY>"
BACKUP_DIR="<PATH-TO-BACKUP-DIR>"
BACKUP_SCHEDULE="<CRONJOB-SCHEDULE>"
8 changes: 8 additions & 0 deletions .github/workflows/ci:lint-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
config:
- sources
- build
- build-with-backups

include:

Expand All @@ -33,6 +34,13 @@ jobs:
--env-file .env -f compose.yaml
--env-file .deploy/ghcr.io/.env -f .deploy/ghcr.io/compose.yaml
- config: build-with-backups
compose-flags: >-
--env-file .env -f compose.yaml
--env-file .deploy/ghcr.io/.env -f .deploy/ghcr.io/compose.yaml
--env-file .deploy/backup/.env -f .deploy/backup/compose.yaml
--env-file .deploy/backup-retention-policy/.env -f .deploy/backup-retention-policy/compose.yaml
runs-on: ubuntu-latest
timeout-minutes: 1

Expand Down

0 comments on commit 14229c2

Please sign in to comment.