test-fest/.forgejo/workflows/demo.yaml

54 lines
1.6 KiB
YAML
Raw Normal View History

2024-09-10 12:12:30 +00:00
on:
push:
2024-09-11 07:30:37 +00:00
#schedule:
# - cron: "*/5 * * * *"
2024-09-10 14:07:14 +00:00
2024-09-11 09:09:05 +00:00
env:
DOCKER_HOST: tcp://172.17.0.1:2375
2024-09-10 08:15:45 +00:00
jobs:
2024-09-10 13:32:46 +00:00
better_name:
strategy:
matrix:
2024-09-11 07:29:34 +00:00
# version:
# - v1.0.0
# - v1.2.0
2024-09-10 13:36:45 +00:00
dist:
2024-09-11 07:33:19 +00:00
# - bullseye
- bookworm
2024-09-10 13:36:45 +00:00
2024-09-11 08:44:44 +00:00
runs-on: ubuntu-22.04
2024-09-10 08:15:45 +00:00
steps:
2024-09-10 13:41:38 +00:00
- run: echo All ${{ matrix.version }}
2024-09-11 08:42:32 +00:00
- run: cat /etc/issue
2024-09-11 08:55:16 +00:00
# - name: Install Docker
# run: curl -fsSL https://get.docker.com | sh
#- name: foo
# uses: https://code.forgejo.org/docker/setup-qemu-action@v3
2024-09-10 12:39:33 +00:00
- uses: actions/checkout@v4
with:
fetch-depth: 0
2024-09-11 07:31:47 +00:00
# ref: refs/tags/${{ matrix.version }}
2024-09-11 07:29:34 +00:00
- 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:
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"