Guest User

pipeline.yml

a guest
Nov 7th, 2023
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.20 KB | Source Code | 0 0
  1. # The manifest for the "pipeline-vanoma-survey-api" pipeline.
  2. # This YAML file defines your pipeline: the source repository it tracks and the order of the environments to deploy to.
  3. # For more info: https://aws.github.io/copilot-cli/docs/manifest/pipeline/
  4.  
  5. name: my-pipeline-name
  6.  
  7. version: 1
  8.  
  9. source:
  10.   provider: GitHub
  11.   properties:
  12.     branch: main
  13.     repository: https://github.com/username/repo.git
  14.     connection_name: copilot-vanoma
  15.  
  16. stages:
  17.   - name: staging
  18.     test_commands:
  19.      - yum update -y && yum install -y sudo expect
  20.       - wget https://ecs-cli-v2-release.s3.amazonaws.com/copilot-linux-arm64-v1.28.0
  21.       - mv ./copilot-linux-arm64-v1.28.0 ./copilot-linux
  22.       - chmod +x ./copilot-linux
  23.       - unbuffer ./copilot-linux svc exec -c "python manage.py migrate" -n service-name -e staging --yes
  24.   - name: production
  25.     test_commands:
  26.      - yum update -y && yum install -y sudo expect
  27.       - wget https://ecs-cli-v2-release.s3.amazonaws.com/copilot-linux-arm64-v1.28.0
  28.       - mv ./copilot-linux-arm64-v1.28.0 ./copilot-linux
  29.       - chmod +x ./copilot-linux
  30.       - unbuffer ./copilot-linux svc exec -c "python manage.py migrate" -n service-name -e production --yes
  31.  
Advertisement
Add Comment
Please, Sign In to add comment