Add built and push script
This commit is contained in:
parent
04ecaa280c
commit
ece2c9c8d6
1 changed files with 10 additions and 0 deletions
10
build-and-push.sh
Executable file
10
build-and-push.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env sh
|
||||
ORG=askiiart
|
||||
NAME=hugo
|
||||
VERSION=$(find . -name "hugo_*_linux-amd64" | sed 's/.*_\(.*\)_.*/\1/')
|
||||
ID=$(docker build . -q)
|
||||
|
||||
docker tag ${ID} ${ORG}/${NAME}:latest
|
||||
docker tag ${ID} ${ORG}/${NAME}:v${VERSION}
|
||||
docker push ${ORG}/${NAME}:latest
|
||||
docker push ${ORG}/${NAME}:v${VERSION}
|
Loading…
Reference in a new issue