use code.forgejo.org/oci as an OCI registry

This commit is contained in:
Earl Warren 2023-09-29 19:17:38 +02:00
parent cafd1de763
commit 06709db2c5
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
8 changed files with 11 additions and 11 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 docker:docker://node:16-bullseye,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://code.forgejo.org/oci/node:16-bullseye,ubuntu-latest:docker://code.forgejo.org/oci/node:16-buster,self-hosted
}
function run() {

View file

@ -6,7 +6,7 @@ jobs:
test:
runs-on: docker
container:
image: debian:bookworm
image: code.forgejo.org/oci/debian:bookworm
options: "--volume /srv/example-cron-volume:/srv/example-cron-volume"
steps:

View file

@ -10,7 +10,7 @@ runner:
insecure: false
fetch_timeout: 5s
fetch_interval: 2s
labels: []
labels: ["docker:docker://code.forgejo.org/oci/node:16-bullseye"]
cache:
enabled: false

View file

@ -9,7 +9,7 @@ jobs:
test:
runs-on: docker
container:
image: debian:bookworm
image: code.forgejo.org/oci/debian:bookworm
options: "--volume /srv/example-pull-request:/srv/example-pull-request"
steps:

View file

@ -10,7 +10,7 @@ runner:
insecure: false
fetch_timeout: 5s
fetch_interval: 2s
labels: []
labels: ["docker:docker://code.forgejo.org/oci/node:16-bullseye"]
cache:
enabled: false

View file

@ -4,11 +4,11 @@ jobs:
test:
runs-on: docker
container:
image: debian:bookworm
image: code.forgejo.org/oci/debian:bookworm
services:
pgsql:
image: postgres:15
image: code.forgejo.org/oci/postgres:15
env:
POSTGRES_DB: test
POSTGRES_PASSWORD: postgres

View file

@ -7,7 +7,7 @@ jobs:
volume-on-step:
runs-on: docker
container:
image: debian:bookworm
image: code.forgejo.org/oci/debian:bookworm
options: "--volume /srv/example-service-volume-valid:/srv/example-service-volume-valid --volume /srv/example-service-volume-invalid:/srv/example-service-volume-invalid"
steps:
@ -21,12 +21,12 @@ jobs:
volume-on-service:
runs-on: docker
container:
image: debian:bookworm
image: code.forgejo.org/oci/debian:bookworm
options: "--volume /srv/example-service-volume-valid:/srv/example-service-volume-valid"
services:
myservice:
image: debian:bookworm
image: code.forgejo.org/oci/debian:bookworm
options: "--volume /srv/example-service-volume-valid:/srv/example-service-volume-valid"
cmd: ["bash", "-c", "echo -n SUCCESS > /srv/example-service-volume-valid ; sleep infinity"]

View file

@ -10,7 +10,7 @@ runner:
insecure: false
fetch_timeout: 5s
fetch_interval: 2s
labels: []
labels: ["docker:docker://code.forgejo.org/oci/node:16-bullseye"]
cache:
enabled: false