Files
matchbox/docker-push
2015-12-16 02:21:22 -08:00

12 lines
258 B
Bash
Executable File

#!/bin/bash -e
REPO=dghubble/bcs
QUAY_REPO=quay.io/dghubble/bcs
GIT_SHA=$(git rev-parse HEAD)
# quay.io
docker tag $REPO:$GIT_SHA $QUAY_REPO:latest
docker tag $REPO:$GIT_SHA $QUAY_REPO:$GIT_SHA
docker push $QUAY_REPO:latest
docker push $QUAY_REPO:$GIT_SHA