Skip to content

Commit

Permalink
added .travis.yml script
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisb87 committed Oct 23, 2023
1 parent e94e5cf commit db3dacb
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
language: minimal
services:
- docker
branches:
only:
- qa
env:
global:
- AWS_DEFAULT_REGION=us-east-1
- LOCAL_TAG_NAME=dc-frontend:$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER
# DOCKER_LOGIN_PASSWORD
- secure: "PWBKqzoehtHm6yDnQ85goSvBlnqE+N+DSesKtElIggKJGewGvHuSUWItYClBRIpbSPcm/5mn8yabhLPz37sJo7nJY/hJHQyGk8dwZtQcLBxVMSq4vMd6EbgeqZeT4oMWzQsT3TpLvESfSyEZu9MNzpKdFdxugOPKk0vUIDFTvBHpRtb+peptLqXBOXeo5czOJQta+QuQr3vd3PIUCYCoCGgx2ueoakIJXxpsNOe1/UHj97gbMlIypD+OdyCp3MQMn5etYFC/98HhTMGKrB8PI6qM/XdEzPzdw9zQjiDMq2xInQImgEFDymBwFfmIz8cEbjNiVnXxjnyfFgD5stmNHNi77rx2LF4MRlbEO7i9jZU7u1KfF+ruEnfYosZLgNKR+1JpeOr8Wvpe2yu/z7vMbeB9l1KvfGNLcRcA9M9kQigDwJJSCiIXj3d+KMoEy01Y5j8Nn18EOkEcOLSPrKBOsiH1y7zT/Ahnk17KIDkbPwiLyixwIjyhMRyVEp9FDjkBCrI93NZxYr3lyGaHSO8ZLHpi7v1NZcBxuNBlyhD+sHjkSdMZXaDBUJ73L7RVHCgdDYI2DP8PzbQ9yiM+6v2XTAbDHd6SMRW86+0K976i47mqAKKqWBLD1JuqYz01ZYTNVBR7UPkD3xS2elDlWeXJo7OKoZOgn2UrUvs4MlMY9Ko="
# AWS_ACCESS_KEY_ID_QA
- secure: "iKDmg+m+mMVs2PyGAdBThrOctyfGxaW3bDC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01IlsJV/4cto/U2OLXkGCYK3XebGtQt1xNkt7mH1+/qSlDPHoKKFl6b+9R1j+Itrz7zwt68pQQX9IKQiLB4V53tx51EDB/heFeD+JgPs/+a4p+VYQHnoBow8dOYoo/GmQTqDeyWdABiJKrCCIfaiQAYwBQgglpRxhWrKelyoYDhUzPhtCXpznFsfiVZ11XA+P0rUcl6Pd9ATKMr8krMhGo+/fJTcyDBtb5eRCE2+Mg6Yh2f+BnJ4RHzP/LVl5/RrxfNKQXby4nT3SL2sBgHVIiV6D1J00="
jobs:
include:
- stage: push QA image
if: (branch = qa) AND (type != pull_request)
env:
- ECR_URL=685731035297.dkr.ecr.us-east-1.amazonaws.com/dc-frontend:$TRAVIS_BRANCH-latest
- AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID_QA
- AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY_QA
install:
- pip install --user awscli
script:
- eval $(aws ecr get-login --no-include-email)
- docker build --tag "$LOCAL_TAG_NAME" .
- docker tag $LOCAL_TAG_NAME "$ECR_URL";
- docker push "$ECR_URL";
- stage: update QA tasks
if: (branch = qa) AND (type != pull_request)
env:
- AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID_QA
- AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY_QA
- CLUSTER_NAME=dc-frontend-qa
- SERVICE_NAME=dc-frontend-qa
install:
- pip install --user awscli
script:
- aws ecs update-service --cluster $CLUSTER_NAME --service $SERVICE_NAME --force-new-deployment
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Created Dockerfile and docker-compose.yml files. (DR-2446)
- Created Next.js 13 app using NYPL Reservoir and TS 4.9.5. (DR-2444)
- Set up travis script to build and deploy to QA (DR-2448)

0 comments on commit db3dacb

Please sign in to comment.