Skip to content
Snippets Groups Projects
Commit 2ea37d99 authored by Bogdan Cochior's avatar Bogdan Cochior
Browse files

ci(aws): deploy container to aws

parent 4770a87e
No related branches found
No related tags found
1 merge request!10Sprint #12
...@@ -83,6 +83,21 @@ demo:qa: ...@@ -83,6 +83,21 @@ demo:qa:
- now --public --docker --token $NOW_TOKEN -e AWS_S3_ACCESS_KEY=$AWS_S3_ACCESS_KEY -e AWS_S3_SECRET_KEY=$AWS_S3_SECRET_KEY -e AWS_S3_REGION=$AWS_S3_REGION -e AWS_S3_BUCKET=$AWS_S3_BUCKET -e AWS_SES_SECRET_KEY=$AWS_SES_SECRET_KEY -e AWS_SES_ACCESS_KEY=$AWS_SES_ACCESS_KEY -e AWS_SES_REGION=$AWS_SES_REGION -e EMAIL_SENDER=$EMAIL_SENDER -e secret=$SECRET -e DATABASE=$DATABASE -e DB_USER=$DB_USER -e DB_PASS=$DB_PASS -e DB_HOST=$DB_HOST - now --public --docker --token $NOW_TOKEN -e AWS_S3_ACCESS_KEY=$AWS_S3_ACCESS_KEY -e AWS_S3_SECRET_KEY=$AWS_S3_SECRET_KEY -e AWS_S3_REGION=$AWS_S3_REGION -e AWS_S3_BUCKET=$AWS_S3_BUCKET -e AWS_SES_SECRET_KEY=$AWS_SES_SECRET_KEY -e AWS_SES_ACCESS_KEY=$AWS_SES_ACCESS_KEY -e AWS_SES_REGION=$AWS_SES_REGION -e EMAIL_SENDER=$EMAIL_SENDER -e secret=$SECRET -e DATABASE=$DATABASE -e DB_USER=$DB_USER -e DB_PASS=$DB_PASS -e DB_HOST=$DB_HOST
- now alias $NOW_URL xpub-faraday-qa --token $NOW_TOKEN - now alias $NOW_URL xpub-faraday-qa --token $NOW_TOKEN
demo:aws-qa:
image: $REPOSITORY_URL:latest
stage: demo
when: manual
variables:
PACKAGE_NAME: xpub-faraday
CLUSTER_NAME: faraday-cluster
environment:
name: qa/$PACKAGE_NAME
url: http://52.211.238.137/
script:
- apk --no-cache add --update python python-dev py-pip
- pip install ecs-deploy
- ecs deploy --region eu-west-1 ${CLUSTER_NAME} ${IMAGE_REPO}:${CI_COMMIT_SHA} --tag ${CI_COMMIT_SHA}
demo:staging: demo:staging:
image: $IMAGE_ORG/$IMAGE_NAME:$CI_COMMIT_SHA image: $IMAGE_ORG/$IMAGE_NAME:$CI_COMMIT_SHA
stage: demo stage: demo
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment