summaryrefslogtreecommitdiff
path: root/x/upload
blob: b085cf10350cf41e895eaddc8039d33a1303ccb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh -eu

newtag="localhost:5000/$1:dist"

echo "Tagging $1 as $newtag"
docker tag "$1" "$newtag"
trap "docker rmi '$newtag'" EXIT

echo "Pushing $newtag"
docker push "$newtag"

echo "Uploaded image to $newtag"