setup-forgejo/action.yml
2023-03-25 16:57:11 +01:00

23 lines
779 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 HHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
pwd
exit 0
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