Skip to content

Commit

Permalink
Also push to :latest tag on release
Browse files Browse the repository at this point in the history
  • Loading branch information
dalen committed Jun 14, 2018
1 parent 604a3ac commit 13478be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ cache: cargo
before_deploy:
- cargo build --release
- docker build . -t "edalen/ecs-run:${TRAVIS_TAG}"
- docker tag "edalen/ecs-run:${TRAVIS_TAG}" "edalen/ecs-run:latest"
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
deploy:
- provider: releases
Expand All @@ -20,7 +21,7 @@ deploy:
repo: dalen/ecs-run
tags: true
- provider: script
script: docker push "edalen/ecs-run:${TRAVIS_TAG}"
script: docker push "edalen/ecs-run:${TRAVIS_TAG}" && docker push "edalen/ecs-run:latest"
on:
repo: dalen/ecs-run
tags: true

0 comments on commit 13478be

Please sign in to comment.