2023-03-25 14:44:02 +01:00
|
|
|
name: 'Setup Forgejo'
|
2023-03-25 22:53:12 +01:00
|
|
|
author: 'Forgejo authors'
|
2023-03-25 14:44:02 +01:00
|
|
|
description: 'Setup Forgejo and a runner'
|
2023-03-24 15:59:04 +01:00
|
|
|
inputs:
|
2023-03-25 22:53:12 +01:00
|
|
|
image:
|
|
|
|
description: 'Container image'
|
|
|
|
default: 'codeberg.org/forgejo/forgejo'
|
|
|
|
image-version:
|
|
|
|
description: 'Container image version'
|
|
|
|
default: '1.19'
|
|
|
|
runner:
|
|
|
|
description: 'Runner git repository'
|
|
|
|
default: 'https://code.forgejo.org/fogejo/runner'
|
|
|
|
runner-version:
|
|
|
|
description: 'Runner version'
|
|
|
|
default: 'v1.4.1'
|
2023-03-24 15:59:04 +01:00
|
|
|
outputs:
|
2023-03-25 22:53:12 +01:00
|
|
|
url:
|
|
|
|
description: "URL"
|
|
|
|
value: ${{ steps.forgejo.outputs.url }}"
|
2023-03-24 15:59:04 +01:00
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
2023-03-25 19:07:46 +01:00
|
|
|
- run: echo "${{ github.action_path }}" >> $GITHUB_PATH
|
|
|
|
shell: bash
|
2023-03-25 22:53:12 +01:00
|
|
|
- id: forgejo
|
|
|
|
run: |
|
2023-03-25 18:50:36 +01:00
|
|
|
dependencies.sh
|
2023-03-25 22:53:12 +01:00
|
|
|
forgejo.sh setup root admin1234 ${{ inputs.image }}:${{ inputs.image-version }}
|
2023-03-25 18:50:36 +01:00
|
|
|
forgejo-runner.sh setup
|
2023-03-25 22:53:12 +01:00
|
|
|
echo url="http://$(cat forgejo-ip):3000" >> $GITHUB_OUTPUT
|
2023-03-24 15:59:04 +01:00
|
|
|
shell: bash
|