setup-forgejo/action.yml

21 lines
708 B
YAML
Raw Normal View History

2023-03-25 09:44:02 -04:00
name: 'Setup Forgejo'
description: 'Setup Forgejo and a runner'
2023-03-24 10:59:04 -04:00
inputs:
2023-03-24 17:42:52 -04:00
forgejo-image: # id of input
description: 'Forgejo image'
default: 'codeberg.org/forgejo/forgejo:v1.19'
2023-03-24 10:59:04 -04:00
outputs:
random-number:
2023-03-24 17:42:52 -04:00
description: "Token"
value: "token"
2023-03-24 10:59:04 -04:00
runs:
using: "composite"
steps:
2023-03-24 17:42:52 -04:00
- run: |
set -x
echo deb http://deb.debian.org/debian bullseye-backports main | tee /etc/apt/sources.list.d/backports.list && apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --quiet -y -t bullseye-backports git docker.io
./forgejo.sh setup root admin1234 codeberg.org/forgejo/forgejo:1.19
./forgejo-runner.sh setup
2023-03-24 10:59:04 -04:00
shell: bash