Skip to content

Commit

Permalink
fix: pr close
Browse files Browse the repository at this point in the history
  • Loading branch information
mishraomp committed Dec 8, 2024
1 parent bb1c70d commit 22066ac
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 19 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/pr-close.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,19 @@ permissions:
packages: write
pull-requests: write
jobs:
cleanup-aws:
name: Cleanup AWS
cleanup-aws-database:
name: Cleanup AWS Database
uses: ./.github/workflows/.deployer.yml
with:
environment_name: dev
command: destroy
secrets: inherit
working_directory: database
secrets: inherit
cleanup-aws-api:
name: Cleanup AWS API
uses: ./.github/workflows/.deployer.yml
with:
environment_name: dev
command: destroy
working_directory: api
secrets: inherit
32 changes: 16 additions & 16 deletions .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,25 @@ permissions:
pull-requests: write
jobs:
# https://github.com/bcgov-nr/action-builder-ghcr
builds:
name: Builds
runs-on: ubuntu-24.04
strategy:
matrix:
package: [backend, migrations]
timeout-minutes: 10
steps:
- uses: bcgov-nr/[email protected]
with:
keep_versions: 50
package: ${{ matrix.package }}
tag: ${{ github.event.number }}
tag_fallback: latest
triggers: ('${{ matrix.package }}/')
#builds:
# name: Builds
# runs-on: ubuntu-24.04
# strategy:
# matrix:
# package: [backend, migrations]
# timeout-minutes: 10
# steps:
# - uses: bcgov-nr/[email protected]
# with:
# keep_versions: 50
# package: ${{ matrix.package }}
# tag: ${{ github.event.number }}
# tag_fallback: latest
# triggers: ('${{ matrix.package }}/')

# https://github.com/bcgov/quickstart-openshift-helpers
deploy-db:
needs: [builds]
#needs: [builds]
name: Deploys Database
uses: ./.github/workflows/.deployer.yml
with:
Expand Down

0 comments on commit 22066ac

Please sign in to comment.