Skip to content

Commit

Permalink
Revert testing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
coreycarvalho committed Nov 4, 2024
1 parent 34a8cf0 commit 1936f86
Showing 1 changed file with 85 additions and 86 deletions.
171 changes: 85 additions & 86 deletions .github/workflows/cd-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ name: Continuous Deployment Pipeline
on:
push:
branches:
- 1972-automated-slack-posting
- main

jobs:
prepare-deployment:
Expand All @@ -30,19 +30,19 @@ jobs:
uses: ./.github/workflows/pr-label-semver.yml
secrets: inherit

# approval-deploy-perf:
# needs: prepare-deployment
# environment:
# name: perf-deploy
# runs-on: ubuntu-latest
# steps:
# - name: Pause for manual approval
# run: |
# echo "Deploying commit SHA ${{ github.sha }}, the latest merge to main"
# echo "Deployment paused for manual approval."
approval-deploy-perf:
needs: prepare-deployment
environment:
name: perf-deploy
runs-on: ubuntu-latest
steps:
- name: Pause for manual approval
run: |
echo "Deploying commit SHA ${{ github.sha }}, the latest merge to main"
echo "Deployment paused for manual approval."
pre-tag-summary:
#needs: approval-deploy-perf
needs: approval-deploy-perf
uses: ./.github/workflows/pre-tag-summary.yml
secrets: inherit

Expand All @@ -51,81 +51,80 @@ jobs:
uses: ./.github/workflows/create-and-post-tag.yml
secrets: inherit

# build-push-artifacts:
# needs: create-and-post-tag
# runs-on: ubuntu-latest
# steps:
# - name: Checkout Repo
# uses: actions/checkout@v4
# with:
# ref: ${{ needs.create-and-post-tag.outputs.newVersion }}
# - name: Build and Push Artifacts
# uses: ./.github/actions/build-push-artifacts
# with:
# ref: ${{ needs.create-and-post-tag.outputs.newVersion }}
# aws-access-key-id: ${{ secrets.VAEC_AWS_ACCESS_KEY_ID }}
# aws-secret-access-key: ${{ secrets.VAEC_AWS_SECRET_ACCESS_KEY }}
# role-to-assume: ${{ secrets.VAEC_DEPLOY_ROLE }}

# deploy-to-perf:
# needs: [create-and-post-tag, build-push-artifacts]
# uses: ./.github/workflows/deploy-release.yml
# secrets: inherit
# with:
# environment: perf
# ref: ${{ needs.create-and-post-tag.outputs.newVersion }}
# lambdaDeploy: true

# approval-deploy-staging:
# needs: deploy-to-perf
# environment:
# name: staging-deploy
# runs-on: ubuntu-latest
# steps:
# - name: Pause for manual approval
# run: echo "Deployment paused for manual approval."

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

# deploy-to-staging:
# needs: [create-release-notes, create-and-post-tag]
# uses: ./.github/workflows/deploy-release.yml
# secrets: inherit
# with:
# environment: staging
# ref: ${{ needs.create-and-post-tag.outputs.newVersion }}
# lambdaDeploy: true

# approval-deploy-prod:
# needs: deploy-to-staging
# environment:
# name: prod-deploy
# runs-on: ubuntu-latest
# steps:
# - name: Pause for manual approval
# run: echo "Pipeline paused for pending approval of staging by QA"

# publish-release-notes:
# needs: [create-release-notes, approval-deploy-prod]
# uses: ./.github/workflows/publish-release-notes.yml
# secrets: inherit
# with:
# draftReleaseReference: ${{ needs.create-release-notes.outputs.draftReleaseReference }}

# deploy-to-prod:
# needs: [publish-release-notes, create-and-post-tag]
# uses: ./.github/workflows/deploy-release.yml
# secrets: inherit
# with:
# environment: prod
# ref: ${{ needs.create-and-post-tag.outputs.newVersion }}
# lambdaDeploy: true
build-push-artifacts:
needs: create-and-post-tag
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
ref: ${{ needs.create-and-post-tag.outputs.newVersion }}
- name: Build and Push Artifacts
uses: ./.github/actions/build-push-artifacts
with:
ref: ${{ needs.create-and-post-tag.outputs.newVersion }}
aws-access-key-id: ${{ secrets.VAEC_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.VAEC_AWS_SECRET_ACCESS_KEY }}
role-to-assume: ${{ secrets.VAEC_DEPLOY_ROLE }}

deploy-to-perf:
needs: [create-and-post-tag, build-push-artifacts]
uses: ./.github/workflows/deploy-release.yml
secrets: inherit
with:
environment: perf
ref: ${{ needs.create-and-post-tag.outputs.newVersion }}
lambdaDeploy: true

approval-deploy-staging:
needs: deploy-to-perf
environment:
name: staging-deploy
runs-on: ubuntu-latest
steps:
- name: Pause for manual approval
run: echo "Deployment paused for manual approval."

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

deploy-to-staging:
needs: [create-release-notes, create-and-post-tag]
uses: ./.github/workflows/deploy-release.yml
secrets: inherit
with:
environment: staging
ref: ${{ needs.create-and-post-tag.outputs.newVersion }}
lambdaDeploy: true

approval-deploy-prod:
needs: deploy-to-staging
environment:
name: prod-deploy
runs-on: ubuntu-latest
steps:
- name: Pause for manual approval
run: echo "Pipeline paused for pending approval of staging by QA"

publish-release-notes:
needs: [create-release-notes, approval-deploy-prod]
uses: ./.github/workflows/publish-release-notes.yml
secrets: inherit
with:
draftReleaseReference: ${{ needs.create-release-notes.outputs.draftReleaseReference }}

deploy-to-prod:
needs: [publish-release-notes, create-and-post-tag]
uses: ./.github/workflows/deploy-release.yml
secrets: inherit
with:
environment: prod
ref: ${{ needs.create-and-post-tag.outputs.newVersion }}
lambdaDeploy: true

send-slack-notifications:
needs: [create-and-post-tag]
Expand Down

0 comments on commit 1936f86

Please sign in to comment.