Skip to content

Commit

Permalink
Tag each docker build with a unique id, and push to quay.io (pypa#440)
Browse files Browse the repository at this point in the history
  • Loading branch information
joerick committed Jan 31, 2020
1 parent 2bb7962 commit 2ff36cc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docker/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash
docker login -u $QUAY_USERNAME -p $QUAY_PASSWORD quay.io
tag="quay.io/pypa/manylinux1_$PLATFORM"
build_id=$(git show -s --format=%cd-%h --date=short $TRAVIS_COMMIT)

docker login -u $QUAY_USERNAME -p $QUAY_PASSWORD quay.io
docker tag ${tag}:${TRAVIS_COMMIT} ${tag}:${build_id}
docker tag ${tag}:${TRAVIS_COMMIT} ${tag}:latest
docker push ${tag}:${build_id}
docker push ${tag}:latest

0 comments on commit 2ff36cc

Please sign in to comment.