Add build script to automatically build the image and push all tags.
This commit is contained in:
parent
04fd5f35e6
commit
0f09331492
1 changed files with 18 additions and 0 deletions
18
buildandtag.sh
Executable file
18
buildandtag.sh
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
#!/bin/sh
|
||||
|
||||
docker image pull gentoo/portage:latest
|
||||
docker image pull gentoo/stage3:amd64-nomultilib-openrc
|
||||
|
||||
datetag="$(date +%Y%m%d)"
|
||||
|
||||
docker build \
|
||||
-t "gittr.ch/linux/pkgcheck:latest" \
|
||||
-t "gittr.ch/linux/pkgcheck:${datetag}" \
|
||||
-t "fritteli/pkgcheck:latest" \
|
||||
-t "fritteli/pkgcheck:${datetag}" \
|
||||
.
|
||||
|
||||
docker image push "gittr.ch/linux/pkgcheck:latest"
|
||||
docker image push "gittr.ch/linux/pkgcheck:${datetag}"
|
||||
docker image push "fritteli/pkgcheck:latest"
|
||||
docker image push "fritteli/pkgcheck:${datetag}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue