Skip to content

Commit

Permalink
Revert changes to testing
Browse files Browse the repository at this point in the history
  • Loading branch information
coreycarvalho committed Feb 6, 2025
1 parent bce6428 commit 0821209
Showing 1 changed file with 25 additions and 21 deletions.
46 changes: 25 additions & 21 deletions .github/workflows/cd-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,20 @@ name: Continuous Deployment Pipeline
# Therefore, ${{ github.sha }} will always be in reference to the SHA that originally triggered this workflow.
# $GITHUB_SHA, on the other hand, is created whenever actions/checkout@v4 is run.

# note:
# environment:
# name:
# is keyword for using the environment protections.

# with:
# environment:
# is simply using a variable named environment

on:
push:
branches:
- 2246-release-notes-simplifying
- main


jobs:
prepare-deployment:
runs-on: ${{ vars.RUNS_ON }}
Expand All @@ -22,23 +30,6 @@ jobs:
uses: ./.github/workflows/pr-label-semver.yml
secrets: inherit

pre-tag-summary:
#needs: approval-deploy-perf
uses: ./.github/workflows/pre-tag-summary.yml
secrets: inherit

create-and-post-tag:
needs: pre-tag-summary
uses: ./.github/workflows/create-and-post-tag.yml
secrets: inherit

create-release-notes:
needs: [create-and-post-tag]
uses: ./.github/workflows/create-release-notes.yml
secrets: inherit
with:
previousVersion: ${{ needs.create-and-post-tag.outputs.previousVersion }}

approval-deploy-perf:
needs: prepare-deployment
environment:
Expand All @@ -50,7 +41,15 @@ jobs:
echo "Deploying commit SHA ${{ github.sha }}, the latest merge to main"
echo "Deployment paused for manual approval."
pre-tag-summary:
needs: approval-deploy-perf
uses: ./.github/workflows/pre-tag-summary.yml
secrets: inherit

create-and-post-tag:
needs: pre-tag-summary
uses: ./.github/workflows/create-and-post-tag.yml
secrets: inherit

build-push-artifacts:
needs: create-and-post-tag
Expand Down Expand Up @@ -86,8 +85,6 @@ jobs:
- name: Pause for manual approval
run: echo "Deployment paused for manual approval to staging and production."



deploy-to-staging:
needs: [create-release-notes, create-and-post-tag]
uses: ./.github/workflows/deploy-release.yml
Expand All @@ -107,6 +104,13 @@ jobs:
ref: ${{ needs.create-and-post-tag.outputs.newVersion }}
lambdaDeploy: true

create-release-notes:
needs: [create-and-post-tag]
uses: ./.github/workflows/create-release-notes.yml
secrets: inherit
with:
previousVersion: ${{ needs.create-and-post-tag.outputs.previousVersion }}

send-slack-notifications:
needs: [deploy-to-prod, create-and-post-tag]
runs-on: ubuntu-latest
Expand Down

0 comments on commit 0821209

Please sign in to comment.