Skip to content
This repository was archived by the owner on Mar 15, 2022. It is now read-only.

Commit 40260b6

Browse files
authored
Merge pull request #4 from joerick/build-tags
Tag each docker build with a unique id, and push to dockerhub
2 parents 61df875 + 0088214 commit 40260b6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docker/deploy.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/bin/bash
2-
docker login -u pypywheels -p $DOCKERPASS
32
tag=pypywheels/manylinux2010-pypy_x86_64
3+
build_id=$(git show -s --format=%cd-%h --date=short $TRAVIS_COMMIT)
4+
5+
docker login -u pypywheels -p $DOCKERPASS
6+
docker tag ${tag}:latest ${tag}:${build_id}
7+
docker push ${tag}:${build_id}
48
docker push ${tag}:latest

0 commit comments

Comments
 (0)