Actions
What this solves
You want to build and publish Docker images from Forgejo workflows.
Container builds need a runner model, registry credentials, cache expectations, and a rollback story.
Actions
You want to build and publish Docker images from Forgejo workflows.
Docker builds stress more of the runner than ordinary test jobs: disk space, privileges, registry access, cache behavior, and secret handling. Decide whether the runner builds locally or delegates to a remote builder before production depends on it.
steps:
- uses: actions/checkout@v4
- run: docker build -t registry.example.com/app:${{ github.sha }} .
- run: echo "$REGISTRY_PASSWORD" | docker login registry.example.com -u "$REGISTRY_USER" --password-stdin
- run: docker push registry.example.com/app:${{ github.sha }}Keep registry credentials in Forgejo secrets.
Watch runner disk pressure and image cleanup.
Use immutable image tags for deploy and rollback.
Use dependency caches deliberately when porting Node, Python, Go, Rust, and Docker workflows to Forgejo Actions.
Understand what usually ports from GitHub Actions to Forgejo Actions, what needs testing, and how to plan a staged workflow migration.
Automate Forgejo with fj, Actions, and API calls: schedule routine jobs, wire repository hooks, handle secrets, and cut releases without touching the UI.