Last active
April 1, 2018 02:56
-
-
Save dejanvasic85/ab3750084481990e415eb7d0a27f26f0 to your computer and use it in GitHub Desktop.
Travis v1
This file contains hidden or 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
| language: node_js | |
| env: | |
| - TRAVIS_DEPLOY_ENV=staging | |
| APP_VERSION=v$TRAVIS_BUILD_NUMBER | |
| services: | |
| - docker | |
| node_js: | |
| - "8" | |
| before_script: | |
| - npm install -g typescript | |
| script: | |
| - npm run build | |
| after_success: | |
| - export AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID | |
| - export AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY | |
| - docker --version | |
| - pip install --user awscli | |
| - export PATH=$PATH:$HOME/.local/bin | |
| - $(aws ecr get-login --region us-east-1 | sed 's|-e none||') | |
| - docker build -t venue-api:$APP_VERSION --build-arg APP_VERSION=$APP_VERSION . | |
| - docker tag venue-api:$APP_VERSION xxxx.dkr.ecr.us-east-1.amazonaws.com/venue-api:$APP_VERSION | |
| - docker push xxxx.dkr.ecr.us-east-1.amazonaws.com/venue-api:$APP_VERSION |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment