mirror of https://github.com/dirtbags/moth.git
This commit is contained in:
parent
31fd9c2fab
commit
de1fdc0691
|
@ -17,6 +17,11 @@ fail () {
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
run () {
|
||||||
|
printf "\033[32m%\033[0m $*\n" 1>&2
|
||||||
|
"$@"
|
||||||
|
}
|
||||||
|
|
||||||
tags () {
|
tags () {
|
||||||
pfx=$1
|
pfx=$1
|
||||||
for base in ghcr.io/dirtbags/moth dirtbags/moth; do
|
for base in ghcr.io/dirtbags/moth dirtbags/moth; do
|
||||||
|
@ -28,11 +33,11 @@ tags () {
|
||||||
|
|
||||||
case $ACTION in
|
case $ACTION in
|
||||||
publish)
|
publish)
|
||||||
docker build \
|
run docker build \
|
||||||
--file build/package/Containerfile \
|
--file build/package/Containerfile \
|
||||||
$(tags) \
|
$(tags) \
|
||||||
.
|
.
|
||||||
docker push $(tags --destination)
|
run docker push $(tags --destination)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Unknown action: $1" 1>&2
|
echo "Unknown action: $1" 1>&2
|
||||||
|
|
Loading…
Reference in New Issue