Skip to content

Commit

Permalink
Fix docker deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Limych committed Feb 4, 2020
1 parent 19254dc commit 5a15655
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ deploy:
skip_existing: true
after_deploy:
- APP_VERSION=$(python -c "import sys; from repositoryupdater import APP_VERSION; sys.stdout.write(APP_VERSION)")
- DOCKER_IMAGE=$DOCKER_USERNAME/hassio-repo-updater
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build -t hassio-repo-updater ./docker
- docker build -t $DOCKER_IMAGE ./docker
- docker images
- docker tag hassio-repo-updater $DOCKER_USERNAME/hassio-repo-updater:$APP_VERSION
- docker push $DOCKER_USERNAME/hassio-repo-updater
- docker push $DOCKER_IMAGE
- docker tag $DOCKER_IMAGE $DOCKER_IMAGE:$APP_VERSION
- docker push $DOCKER_IMAGE

0 comments on commit 5a15655

Please sign in to comment.