- CSS 96.1%
- Just 2.6%
- Shell 0.7%
- Python 0.3%
- Dockerfile 0.3%
|
All checks were successful
Build container image / Build and push image (push) Successful in 19m40s
|
||
|---|---|---|
| .forgejo | ||
| assets | ||
| bluebuild_files | ||
| build_files | ||
| disk_config | ||
| system_files | ||
| .gitignore | ||
| artifacthub-repo.yml | ||
| Containerfile | ||
| cosign.pub | ||
| Justfile | ||
| LICENSE | ||
| README.md | ||
Universal Blue Image Template - Forgejo
I (skullbite) do not claim ownership of the original image template. Just the changes made for Forgejo.
This project tweaks the Universal Blue image template's action workflow to be compatible with Forgejo (14.0.3+) instances. (excluding codeberg which hasn't been tested)
There is no intention of keeping this repository up-to-spec with the original repo which occassionally recieves minor tweaks from its maintainers and Dependabot. (Mirror Date: 2026-05-10)
Runner Requirements
Since Forgejo instances only support self-hosted runners, you'll need to ensure the following:
- Use the label
ubuntu-24.04:docker://ghcr.io/catthehacker/ubuntu:act-24.04in your runner's config. - Ensure docker is availible for your runner. If you're using docker/podman to host Forgejo and/or your runner, I recommend looking at the Forgejo + Runner compose file.
How to Use
Warning
This was tested on Forgejo (14.0.3), support cannot be garaunteed for any older version.
Ensure that your Forgejo instance of choice allows for actions, if it doesn't you can't continue.
Regarding Step 4/5: Do NOT share this token with anybody! They will have access to push images on your behalf!
Regarding Step 6: Do NOT commit "cosign.key" to your repo, and do NOT share it with anybody!
If your "cosign.key" is ever publicly exposed, repeat step 6 as soon as possible; YOUR REPOS SECURITY IS COMPROMISED!
-
On your Forgejo instance, create a new migration, select Forgejo, and enter this repo's url (right click to copy) into the "Migrate / Clone from URL" text box.
-
In the newly migrated repo, go to Settings > Units > Overview and ensure that Actions are ticked on.
-
In the file ".forgejo/workflows/build.yml", change the env variable
REGISTRY_URLto match your forgejo instance url. -
Go to User Settings > Applications > Access tokens and create a token with the permission
write:package(Packages: Read and Write) and copy it, no other permissions are necessary. -
Go to the Repository Settings > Actions > Secrets and add the token from the previous step to a new secret with the name
REGISTRY_TOKEN, do not share this token with anyone. -
You must create a key pair to sign your image before continuing, commit
cosign.pubto your repo, and add the contents ofcosign.keyas a new secret with the nameSIGNING_SECRET. -
Make whatever changes you see fit and commit them.
The original README can be found here which contains important information on how this template works, as well as examples of custom images created with this template.
Warning for Cloudflare users
Having your Forgejo instance running through the Cloudflare free plan proxy will limit the upload size below what is needed to push a container generated by this repo. It is recommended to reverse proxy your domain through Caddy or NGINX instead as you'll have full control on upload size.