An action to build and publish Forgejo releases
Go to file
2024-01-19 15:36:46 +00:00
.forgejo/workflows tests: upgrade to v1.21 2023-12-28 22:36:03 +01:00
build fix typo 2024-01-19 15:36:46 +00:00
publish add documentation 2023-08-25 12:07:33 +02:00
testdata tests: upgrade alpine:3.19 2023-12-28 22:44:38 +01:00
.gitignore initial implementation 2023-08-25 10:35:35 +02:00
LICENSE initial implementation 2023-08-25 10:35:35 +02:00
README.md tests: upgrade to v1.21 2023-12-28 22:36:03 +01:00

forgejo-build-publish

This repository contains two actions that can be used together.

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://code.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://code.forgejo.org/forgejo/forgejo-build-publish/publish@v1
        with:
          forgejo: "${{ env.GITHUB_SERVER_URL }}"
          from-owner: "${{ env.GITHUB_REPOSITORY_OWNER }}"
          to-owner: "forgejo-experimental"
          ref-name: ${{ github.ref_name }}
          container-suffixes: " "
          doer: "releaes-team"
          token: "FORGEJO_TOKEN"

Hacking