Skip to content

Commit

Permalink
fixup! integrate db_backup_job and hook_db_restore into CI
Browse files Browse the repository at this point in the history
  • Loading branch information
BacLuc committed Sep 12, 2023
1 parent 315d288 commit 6251653
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/restore-backup-dev-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: DB Restore for dev and feature branches
on:
workflow_dispatch:
inputs:
sourceFile:
restoreSourceFile:
type: string
description: |
The sourceFile of the backup in the bucket to restore, e.g.
Expand All @@ -24,7 +24,6 @@ on:

jobs:
build-and-push:
if: contains(github.event.pull_request.labels.*.name, 'deploy!')
name: Build and push docker images
uses: ./.github/workflows/reusable-build-and-push.yml
with:
Expand All @@ -43,5 +42,5 @@ jobs:
env: ${{ inputs.env }}
pr_number: ${{ inputs.pr_number }}
dropDBOnUninstall: ${{ inputs.pr_number != null }}
restoreSourceFile: ${{ inputs.sourceFile }}
restoreSourceFile: ${{ inputs.restoreSourceFile }}
secrets: inherit
6 changes: 3 additions & 3 deletions .github/workflows/restore-backup-stage-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: DB Restore for staging and prod
on:
workflow_dispatch:
inputs:
sourceFile:
restoreSourceFile:
type: string
description: |
The sourceFile of the backup in the bucket to restore, e.g.
The restoreSourceFile of the backup in the bucket to restore, e.g.
ecamp-aws-setup-ecamp3devbucket58b42731-1kxz0xdiuxni8/dev/2023-07-17-12-55-33-dev.sql.gz.gpg
required: true
default: latest
Expand Down Expand Up @@ -47,5 +47,5 @@ jobs:
needs: build-and-push
uses: ./.github/workflows/reusable-stage-prod-deployment.yml
with:
sourceFile: ${{ inputs.sourceFile }}
restoreSourceFile: ${{ inputs.restoreSourceFile }}
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/reusable-stage-prod-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: '[reusable only] Staging and Prod deployment '
on:
workflow_call:
inputs:
sourceFile:
restoreSourceFile:
type: string
required: false

Expand Down

0 comments on commit 6251653

Please sign in to comment.