mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-24 03:50:57 -05:00
Merge pull request 'add test to verify the runner is registered' (#23) from earl-warren/setup-forgejo:wip-runner into main
Reviewed-on: https://code.forgejo.org/actions/setup-forgejo/pulls/23 Reviewed-by: dachary <dachary@noreply.code.forgejo.org>
This commit is contained in:
commit
a6e1d54a97
2 changed files with 3 additions and 1 deletions
|
@ -81,6 +81,7 @@ runs:
|
||||||
- id: forgejo
|
- id: forgejo
|
||||||
run: |
|
run: |
|
||||||
cd $(mktemp -d)
|
cd $(mktemp -d)
|
||||||
|
cp ${{ github.action_path }}/runner-config.yaml .
|
||||||
LXC_IP_PREFIX=${{ inputs.lxc-ip-prefix }} forgejo-dependencies.sh
|
LXC_IP_PREFIX=${{ inputs.lxc-ip-prefix }} forgejo-dependencies.sh
|
||||||
export CONTAINER=${{ inputs.container }}
|
export CONTAINER=${{ inputs.container }}
|
||||||
forgejo.sh setup ${{ inputs.user }} "${{ inputs.password }}" ${{ inputs.image }} ${{ inputs.image-version }}
|
forgejo.sh setup ${{ inputs.user }} "${{ inputs.password }}" ${{ inputs.image }} ${{ inputs.image-version }}
|
||||||
|
@ -89,4 +90,5 @@ runs:
|
||||||
echo host-port="$(cat forgejo-ip):3000" >> $GITHUB_OUTPUT
|
echo host-port="$(cat forgejo-ip):3000" >> $GITHUB_OUTPUT
|
||||||
echo token=$(cat forgejo-token) >> $GITHUB_OUTPUT
|
echo token=$(cat forgejo-token) >> $GITHUB_OUTPUT
|
||||||
echo runner-logs="$(pwd)/forgejo-runner.log" >> $GITHUB_OUTPUT
|
echo runner-logs="$(pwd)/forgejo-runner.log" >> $GITHUB_OUTPUT
|
||||||
|
echo runner-file="$(pwd)/.runner" >> $GITHUB_OUTPUT
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
|
@ -21,4 +21,4 @@ jobs:
|
||||||
test "${{ steps.forgejo.outputs.token }}"
|
test "${{ steps.forgejo.outputs.token }}"
|
||||||
test "FORGEJO_TOKEN" -a "FORGEJO_TOKEN" != F'O'RGEJO_TOKEN
|
test "FORGEJO_TOKEN" -a "FORGEJO_TOKEN" != F'O'RGEJO_TOKEN
|
||||||
curl ${{ steps.forgejo.outputs.url }}/api/forgejo/v1/version | grep 1.19
|
curl ${{ steps.forgejo.outputs.url }}/api/forgejo/v1/version | grep 1.19
|
||||||
|
test -f ${{ steps.forgejo.outputs.runner-file }}
|
||||||
|
|
Loading…
Reference in a new issue