mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-12-26 06:42:17 -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() {
|
||||
local forgejo="$1"
|
||||
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() {
|
||||
|
|
2
testdata/demo/.forgejo/workflows/test.yml
vendored
2
testdata/demo/.forgejo/workflows/test.yml
vendored
|
@ -1,7 +1,7 @@
|
|||
on: [push]
|
||||
jobs:
|
||||
ls:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: docker
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- run: |
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
on: [push]
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: docker
|
||||
container:
|
||||
image: alpine:3.18
|
||||
steps:
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
on: [push]
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: docker
|
||||
steps:
|
||||
- run: echo All Good
|
||||
|
|
|
@ -2,7 +2,7 @@ on: [push]
|
|||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: docker
|
||||
|
||||
services:
|
||||
pgsql:
|
||||
|
|
Loading…
Reference in a new issue