Just spent the better part of my evening figuring out how to get Forgejo Actions to build my Ansible Execution Environment images and push the image to my private registry. Getting Docker-in-Docker (in Docker) working was a struggle.

#homelab #forgejo #cicd #ansible #docker

@deliverance You might want to consider #kaniko.

Building Docker images without Docker using Kaniko + Gitlab CI and AWS | by Raphael Moraes | Webera
https://webera.blog/building-docker-images-without-docker-using-kaniko-gitlab-ci-and-aws-c85ee802a4b

Medium

Medium

@deliverance If #Kaniko is not your speed, You can still do better than #DinD by using #PinD or even #PinP

How to use Podman inside of a container
https://www.redhat.com/sysadmin/podman-inside-container

This way you don't need a daemon, and you can run rootless.

How to use Podman inside of a container

Have you ever wondered about running Podman in a container: Podman in Podman, Podman in Docker, or even Podman in Kubernetes?

Enable Sysadmin
@mcrocker Very interesting, seems like it would have been way simpler! I'll check it out on the inevitable next iteration