If you want that the best is to avoid github actions and just scripts
If you want that the best is to avoid github actions and just scripts
buildah bud, so you can put that in a script and then call ./build.shHowever, we recommend using gitea.xyz in case Gitea adds something that GitHub does not have to avoid different kinds of secrets in your workflow file (and because you are using this workflow on Gitea, not GitHub). Still, this is completely optional since both options have the same effect at the moment.
ostree-unverified-image:oci:/var/run/imagebuildah bud./build.shcat /usr/local/bin/zerolayer
#!/usr/bin/env python3
from subprocess import run
def main():
img_dir = "/var/run/image"
# Preemptive cleanup to avoid build errors
cleanup_cmd = ["rm", "-rf", img_dir]
run(cleanup_cmd)
podman_build = [
"buildah",
"bud",
"-t",
"oci:/var/run/image",
"/etc/zerolayer"
]
run(podman_build)
# Post build cleanup
run(cleanup_cmd)
if __name__ == "__main__":
main()ostree-unverified-image:oci:/var/run/image