mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-24 03:01:04 -05:00
Merge pull request 'replace ubuntu-latest with docker for clarity' (#26) from earl-warren/setup-forgejo:wip-example into main
Reviewed-on: https://code.forgejo.org/actions/setup-forgejo/pulls/26 Reviewed-by: dachary <dachary@noreply.code.forgejo.org>
This commit is contained in:
commit
4ebf29226f
5 changed files with 5 additions and 5 deletions
|
@ -24,7 +24,7 @@ function download() {
|
||||||
function register() {
|
function register() {
|
||||||
local forgejo="$1"
|
local forgejo="$1"
|
||||||
docker exec --user 1000 forgejo forgejo actions generate-runner-token > forgejo-runner-token
|
docker exec --user 1000 forgejo forgejo actions generate-runner-token > forgejo-runner-token
|
||||||
timeout --signal=KILL 30 forgejo-runner register --no-interactive --instance "$forgejo" --name runner --token $(cat forgejo-runner-token) --labels ubuntu-latest:docker://node:16-buster,self-hosted
|
timeout --signal=KILL 30 forgejo-runner register --no-interactive --instance "$forgejo" --name runner --token $(cat forgejo-runner-token) --labels docker:docker://node:16-bullseye,ubuntu-latest:docker://node:16-buster,self-hosted
|
||||||
}
|
}
|
||||||
|
|
||||||
function run() {
|
function run() {
|
||||||
|
|
2
testdata/demo/.forgejo/workflows/test.yml
vendored
2
testdata/demo/.forgejo/workflows/test.yml
vendored
|
@ -1,7 +1,7 @@
|
||||||
on: [push]
|
on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
ls:
|
ls:
|
||||||
runs-on: ubuntu-latest
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- run: |
|
- run: |
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
on: [push]
|
on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: alpine:3.18
|
image: alpine:3.18
|
||||||
steps:
|
steps:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
on: [push]
|
on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
- run: echo All Good
|
- run: echo All Good
|
||||||
|
|
|
@ -2,7 +2,7 @@ on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: docker
|
||||||
|
|
||||||
services:
|
services:
|
||||||
pgsql:
|
pgsql:
|
||||||
|
|
Loading…
Reference in a new issue