Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # The manifest for the "pipeline-vanoma-survey-api" pipeline.
- # This YAML file defines your pipeline: the source repository it tracks and the order of the environments to deploy to.
- # For more info: https://aws.github.io/copilot-cli/docs/manifest/pipeline/
- name: my-pipeline-name
- version: 1
- source:
- provider: GitHub
- properties:
- branch: main
- repository: https://github.com/username/repo.git
- connection_name: copilot-vanoma
- stages:
- - name: staging
- test_commands:
- - yum update -y && yum install -y sudo expect
- - wget https://ecs-cli-v2-release.s3.amazonaws.com/copilot-linux-arm64-v1.28.0
- - mv ./copilot-linux-arm64-v1.28.0 ./copilot-linux
- - chmod +x ./copilot-linux
- - unbuffer ./copilot-linux svc exec -c "python manage.py migrate" -n service-name -e staging --yes
- - name: production
- test_commands:
- - yum update -y && yum install -y sudo expect
- - wget https://ecs-cli-v2-release.s3.amazonaws.com/copilot-linux-arm64-v1.28.0
- - mv ./copilot-linux-arm64-v1.28.0 ./copilot-linux
- - chmod +x ./copilot-linux
- - unbuffer ./copilot-linux svc exec -c "python manage.py migrate" -n service-name -e production --yes
Advertisement
Add Comment
Please, Sign In to add comment