Skip to content

Commit

Permalink
Merge pull request #34 from liam-hp/dev
Browse files Browse the repository at this point in the history
feat(cicd): add functionality support for main
  • Loading branch information
liam-hp committed Aug 28, 2023
2 parents 6212cdf + 001d764 commit 42c21aa
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/cicd-driver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,23 @@ jobs:
uses: ./.github/workflows/fetch-build.yaml
with:
FETCH_FROM: dev

fetch-build-main:
if: github.ref == 'refs/heads/main'
uses: ./.github/workflows/fetch-build.yaml
with:
FETCH_FROM: qa

release-qa:
if: github.ref == 'refs/heads/qa'
needs: fetch-build-qa
uses: ./.github/workflows/release.yaml

release-main:
if: github.ref == 'refs/heads/main'
needs: fetch-build-main
uses: ./.github/workflows/release.yaml

inject-deploy-dev:
if: github.ref == 'refs/heads/dev' && ${{ needs.release-internal.outputs.deploy }}
uses: ./.github/workflows/deploy.yaml
Expand All @@ -63,6 +74,15 @@ jobs:
if: github.ref == 'refs/heads/qa' && ${{ needs.release-internal.outputs.deploy }}
uses: ./.github/workflows/deploy.yaml
needs: release-qa
with:
DEPLOY_ENV: ${{ github.ref_name }}
S3_BUCKET: s3://build-once-deploy-many-${{ github.ref_name }}
secrets: inherit

inject-deploy-main:
if: github.ref == 'refs/heads/main' && ${{ needs.release-internal.outputs.deploy }}
uses: ./.github/workflows/deploy.yaml
needs: release-main
with:
DEPLOY_ENV: ${{ github.ref_name }}
S3_BUCKET: s3://build-once-deploy-many-${{ github.ref_name }}
Expand Down

0 comments on commit 42c21aa

Please sign in to comment.