Pull images used for building containers before building them
This commit is contained in:
parent
0676338348
commit
5333f27ec6
1 changed files with 8 additions and 7 deletions
|
@ -2,13 +2,6 @@
|
||||||
|
|
||||||
BASEDIR=/etc/forgejo-actions
|
BASEDIR=/etc/forgejo-actions
|
||||||
|
|
||||||
for container in "$BASEDIR"/Containerfile.*; do
|
|
||||||
base=$(basename "$container")
|
|
||||||
tag=${base#"Containerfile."}
|
|
||||||
podman build -t "git.ctbk.de/infra/$tag" --cpu-quota 50000 -f "$container" $BASEDIR
|
|
||||||
podman push "git.ctbk.de/infra/$tag"
|
|
||||||
done
|
|
||||||
|
|
||||||
# extra container tags and pushes for things that we don’t build, but need
|
# extra container tags and pushes for things that we don’t build, but need
|
||||||
podman pull data.forgejo.org/oci/alpine:latest
|
podman pull data.forgejo.org/oci/alpine:latest
|
||||||
podman pull ghcr.io/catthehacker/ubuntu:act-24.04
|
podman pull ghcr.io/catthehacker/ubuntu:act-24.04
|
||||||
|
@ -18,3 +11,11 @@ podman tag ghcr.io/catthehacker/ubuntu:act-24.04 git.ctbk.de/infra/ubuntu:act-24
|
||||||
|
|
||||||
podman push git.ctbk.de/infra/alpine:latest
|
podman push git.ctbk.de/infra/alpine:latest
|
||||||
podman push git.ctbk.de/infra/ubuntu:act-24.04
|
podman push git.ctbk.de/infra/ubuntu:act-24.04
|
||||||
|
|
||||||
|
for container in "$BASEDIR"/Containerfile.*; do
|
||||||
|
base=$(basename "$container")
|
||||||
|
tag=${base#"Containerfile."}
|
||||||
|
podman build -t "git.ctbk.de/infra/$tag" --cpu-quota 50000 -f "$container" $BASEDIR
|
||||||
|
podman push "git.ctbk.de/infra/$tag"
|
||||||
|
done
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue