Skip to content

🛠️ Made some improvements during class. (82fbee4374d4e765246b46572d6f7a7915b4fb6b) #71

🛠️ Made some improvements during class. (82fbee4374d4e765246b46572d6f7a7915b4fb6b)

🛠️ Made some improvements during class. (82fbee4374d4e765246b46572d6f7a7915b4fb6b) #71

Workflow file for this run

name: Blue-Green CI/CD Pipeline
run-name: "🛠️ ${{ github.event.head_commit.message }} (${{ github.sha }})"
on:
push:
branches:
- blue-green-demo #normally 'main'
jobs:
ci-frontend:
uses: ./.github/workflows/ci-frontend.yml
with:
ref: ${{ github.sha }}
ci-backend:
uses: ./.github/workflows/ci-backend.yml
with:
ref: ${{ github.sha }}
cd-backend:
needs: [ci-frontend, ci-backend]
uses: ./.github/workflows/cd-backend.yml
with:
ref: ${{ github.sha }}
secrets: inherit
cd-frontend:
needs: [cd-backend]
uses: ./.github/workflows/cd-frontend.yml
with:
ref: ${{ github.sha }}
backend_url: ${{ needs.cd-backend.outputs.backend_url }}
secrets: inherit
promote:
needs: [cd-frontend]
uses: ./.github/workflows/promote.yml
with:
ref: ${{ github.sha }}
s3_bucket_hostname: ${{ needs.cd-frontend.outputs.s3_bucket_hostname }}
secrets: inherit
cleanup:
needs: [promote]
uses: ./.github/workflows/cleanup.yml
with:
ref: ${{ needs.promote.outputs.previous_ref }}
env_name: Previous Blue
reason: decommissioning
secrets: inherit
failure:
needs: [cd-backend, cd-frontend, promote]
if: failure()
uses: ./.github/workflows/cleanup.yml
with:
ref: ${{ github.sha }}
env_name: Green
reason: failure
secrets: inherit