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

12 lines
265 B
Bash
Executable File

#!/bin/bash -e
REPO=coreos/bootcfg
QUAY_REPO=quay.io/coreos/bootcfg
GIT_SHA=$(git rev-parse HEAD)
# quay.io
docker tag -f $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