deployment pipeline #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .github/workflows/deploy.yml | |
# - CICD (major) | |
# - multiple connected jobs (with if successfully) --- done | |
# - pull prod model from RDS and create container --- done | |
# - push to ECR --- | |
# - Run the container on EC2/ECS --- | |
# - push docker img to docker hub and run it on docker desktop --- done | |
# - or push particular branch k particular folder me hone pr CI pipeline trigger karo --- done | |
name: deployment pipeline | |
on: | |
workflow_run: | |
workflows: ['build & push img'] | |
types: | |
- completed | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy the container | |
env: | |
deploy_url: ${{ secrets.DEPLOY_HOOK }} | |
run: | | |
curl "$deploy_url" |