mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-23 23:50:58 -05:00
add user/password inputs
This commit is contained in:
parent
d479e59b59
commit
f68182a239
1 changed files with 11 additions and 1 deletions
12
action.yml
12
action.yml
|
@ -8,6 +8,12 @@ inputs:
|
||||||
image-version:
|
image-version:
|
||||||
description: 'Container image version'
|
description: 'Container image version'
|
||||||
default: '1.19'
|
default: '1.19'
|
||||||
|
user:
|
||||||
|
description: 'Administrator user name'
|
||||||
|
default: 'root'
|
||||||
|
password:
|
||||||
|
description: 'Administrator password'
|
||||||
|
default: 'admin1234'
|
||||||
runner:
|
runner:
|
||||||
description: 'Runner git repository'
|
description: 'Runner git repository'
|
||||||
default: 'https://code.forgejo.org/fogejo/runner'
|
default: 'https://code.forgejo.org/fogejo/runner'
|
||||||
|
@ -18,6 +24,9 @@ outputs:
|
||||||
url:
|
url:
|
||||||
description: "URL"
|
description: "URL"
|
||||||
value: ${{ steps.forgejo.outputs.url }}"
|
value: ${{ steps.forgejo.outputs.url }}"
|
||||||
|
token:
|
||||||
|
description: "Application token"
|
||||||
|
value: ${{ steps.forgejo.outputs.token }}"
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
|
@ -26,7 +35,8 @@ runs:
|
||||||
- id: forgejo
|
- id: forgejo
|
||||||
run: |
|
run: |
|
||||||
dependencies.sh
|
dependencies.sh
|
||||||
forgejo.sh setup root admin1234 ${{ inputs.image }}:${{ inputs.image-version }}
|
forgejo.sh setup ${{ inputs.user }} "${{ inputs.password }}" ${{ inputs.image }}:${{ inputs.image-version }}
|
||||||
forgejo-runner.sh setup
|
forgejo-runner.sh setup
|
||||||
echo url="http://$(cat forgejo-ip):3000" >> $GITHUB_OUTPUT
|
echo url="http://$(cat forgejo-ip):3000" >> $GITHUB_OUTPUT
|
||||||
|
echo token=$(cat forgejo-token) >> $GITHUB_OUTPUT
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
Loading…
Reference in a new issue