mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-23 20:40:59 -05:00
20 lines
708 B
YAML
20 lines
708 B
YAML
name: 'Setup Forgejo'
|
|
description: 'Setup Forgejo and a runner'
|
|
inputs:
|
|
forgejo-image: # id of input
|
|
description: 'Forgejo image'
|
|
default: 'codeberg.org/forgejo/forgejo:v1.19'
|
|
outputs:
|
|
random-number:
|
|
description: "Token"
|
|
value: "token"
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- 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
|
|
shell: bash
|