8 lines
365 B
Bash
Executable file
8 lines
365 B
Bash
Executable file
#!/bin/sh
|
|
echo Starting runner...
|
|
if [ ! -e /conf/config.yaml ]; then
|
|
echo "Configuration not found. We need to create one"
|
|
forgejo-runner generate-config > /conf/config.yaml
|
|
forgejo-runner register -c /conf/config.yaml --no-interactive --instance $INSTANCE --labels $LABELS --name $NAME --token $TOKEN
|
|
fi
|
|
apk add nodejs git # For basic checkout action
|