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:
earl-warren 2023-05-30 13:34:41 +00:00
commit 4ebf29226f
5 changed files with 5 additions and 5 deletions

View file

@ -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() {

View file

@ -1,7 +1,7 @@
on: [push]
jobs:
ls:
runs-on: ubuntu-latest
runs-on: docker
steps:
- uses: actions/checkout@v3
- run: |

View file

@ -1,7 +1,7 @@
on: [push]
jobs:
test:
runs-on: ubuntu-latest
runs-on: docker
container:
image: alpine:3.18
steps:

View file

@ -1,6 +1,6 @@
on: [push]
jobs:
test:
runs-on: ubuntu-latest
runs-on: docker
steps:
- run: echo All Good

View file

@ -2,7 +2,7 @@ on: [push]
jobs:
test:
runs-on: ubuntu-latest
runs-on: docker
services:
pgsql: