Skip to content

Clean CICD pipeline #19

Clean CICD pipeline

Clean CICD pipeline #19

name: staging
on:
push:
branches:
- staging
jobs:
build:
uses: ./.github/workflows/ci.yml
deploy:
needs: build
uses: ./.github/workflows/cd.yml
with:
stack_name: search-engine-staging
domain_name: staging.search.vectornguyen.com
hosted_zone_id: Z02762033GQ721WO21JL8
secrets: inherit
rollback:
needs: deploy
if: failure()
uses: ./.github/workflows/rollback.yml
with:
stack_name: search-engine-staging
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}