mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-23 22:31:04 -05:00
replace ubuntu-latest with docker for clarity
This commit is contained in:
parent
df36663bb0
commit
efb633bec9
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