Skip to content

Commit

Permalink
Push docker image after deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Dec 25, 2024
1 parent dd570c9 commit 4853173
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/deploy-development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
secrets: inherit
with:
branch: ${{ github.ref_name }}

ci-cd:
if: |
always() &&
Expand All @@ -26,6 +27,16 @@ jobs:
contents: read
id-token: write
secrets: inherit

push-docker:
needs: [ci-cd]
uses: libops/actions/.github/workflows/build-push-sh.yml@main
with:
environment: ${{ github.ref_name }}
permissions:
contents: read
secrets: inherit

sync-new-environment:
needs: [create-environment, ci-cd]
uses: libops/actions/.github/workflows/sync-db.yml@main
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,12 @@ jobs:
contents: read
id-token: write
secrets: inherit

push-docker:
needs: [deploy]
uses: libops/actions/.github/workflows/build-push-sh.yml@main
with:
environment: production
permissions:
contents: read
secrets: inherit

0 comments on commit 4853173

Please sign in to comment.