- Shell 100%
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [https://data.forgejo.org/actions/setup-forgejo](https://code.forgejo.org/actions/setup-forgejo) | action | patch | `v3.1.8` → `v3.1.9` | --- > ⚠️ **Warning** > > Some dependencies could not be looked up. Check the [Dependency Dashboard](issues/30) for more information. --- ### Release Notes <details> <summary>actions/setup-forgejo (https://data.forgejo.org/actions/setup-forgejo)</summary> ### [`v3.1.9`](https://code.forgejo.org/actions/setup-forgejo/releases/tag/v3.1.9) [Compare Source](https://code.forgejo.org/actions/setup-forgejo/compare/v3.1.8...v3.1.9) <!--start release-notes-assistant--> <!--URL:https://code.forgejo.org/actions/setup-forgejo--> - other - [PR](https://code.forgejo.org/actions/setup-forgejo/pulls/942): <!--number 942 --><!--line 0 --><!--description VXBkYXRlIGRlcGVuZGVuY3kgZm9yZ2Vqby9ydW5uZXIgdG8gdjEyLjguMA==-->Update dependency forgejo/runner to v12.8.0<!--description--> - [PR](https://code.forgejo.org/actions/setup-forgejo/pulls/934): <!--number 934 --><!--line 0 --><!--description VXBkYXRlIGRlcGVuZGVuY3kgZm9yZ2Vqby9ydW5uZXIgdG8gdjEyLjcuMw==-->Update dependency forgejo/runner to v12.7.3<!--description--> <!--end release-notes-assistant--> </details> --- ### Configuration 📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC), Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My45OS4xIiwidXBkYXRlZEluVmVyIjoiNDMuOTkuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Reviewed-on: https://code.forgejo.org/forgejo/forgejo-build-publish/pulls/71 Reviewed-by: Mathieu Fenniak <mfenniak@noreply.code.forgejo.org> Co-authored-by: Renovate Bot <bot@kriese.eu> Co-committed-by: Renovate Bot <bot@kriese.eu> |
||
|---|---|---|
| .forgejo | ||
| build | ||
| publish | ||
| testdata | ||
| .editorconfig | ||
| .gitignore | ||
| LICENSE | ||
| README.md | ||
| runner-config.yaml | ||
| test.sh | ||
forgejo-build-publish
This repository contains two actions that can be used together.
This action is not designed to be used in an application container (Docker, podman), it needs to run on an actual machine or a system container (LXC) with Debian GNU/Linux bookworm.
See the Forgejo runner documentation for more information.
The forgejo-build-publish/build action will build multi-architecture
binaries and OCI images and upload them to a Forgejo user/organization.
The forgejo-build-publish/publish action will copy and optionally sign
binaries and OCI images from one user/organization to another.
Example
- uses: https://data.forgejo.org/forgejo/forgejo-build-publish/build@v1
with:
forgejo: "${{ env.GITHUB_SERVER_URL }}"
owner: "${{ env.GITHUB_REPOSITORY_OWNER }}"
repository: "${{ steps.repository.outputs.value }}"
doer: "release-team"
tag-version: "${{ steps.tag-version.outputs.value }}"
token: "FORGEJO_TOKEN"
platforms: linux/amd64,linux/arm64
release-notes: "RELEASE-NOTES"
binary-name: software
binary-path: /bin/software
dockerfile: Dockerfile
- uses: https://data.forgejo.org/forgejo/forgejo-build-publish/publish@v1
with:
from-forgejo: "${{ env.GITHUB_SERVER_URL }}"
from-owner: "${{ env.GITHUB_REPOSITORY_OWNER }}"
to-forgejo: "${{ env.GITHUB_SERVER_URL }}"
to-owner: "forgejo-experimental"
to-doer: "releaes-team"
to-token: "FORGEJO_TOKEN"
repo: myrepo
ref-name: ${{ github.ref_name }}
container-suffixes: " "
Hacking
docker and sudo must be installed with insecure registries allowed in /etc/docker/daemon.json for the IP that will be used for forgejo such as:
{
"insecure-registries": [ "10.0.0.0/8" ]
}
Requires LXC
git clone https://data.forgejo.org/actions/setup-forgejo
export PATH=$(pwd)/setup-forgejo:$PATH
git clone https://data.forgejo.org/actions/forgejo-build-publish
cd forgejo-build-publish
export DIR=/tmp/forgejo-build-publish
- Run the test
Will call firefox on the Forgejo instance running the tests. It can build only for one target architecture if the debugging is not about that. Setting up binfmt properly is not for the faint of heart.
AMD64_ONLY=true ./test.sh run
- Teardown
./test.sh teardown
- Update the README from the actions file with https://github.com/npalm/action-docs
action-docs --update-readme