mirror of https://code.forgejo.org/forgejo/runner
Merge pull request 'Use forgejo mirror images' (#250) from chore/mirror-images into main
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/250 Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>pull/249/head
commit
8509c33a07
|
@ -4,7 +4,7 @@ jobs:
|
||||||
ipv6:
|
ipv6:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: debian:bookworm
|
image: code.forgejo.org/oci/debian:bookworm
|
||||||
steps:
|
steps:
|
||||||
- run: |
|
- run: |
|
||||||
apt update -qq ; apt --quiet install -qq --yes iputils-ping
|
apt update -qq ; apt --quiet install -qq --yes iputils-ping
|
||||||
|
|
|
@ -61,7 +61,7 @@ jobs:
|
||||||
done
|
done
|
||||||
grep --quiet "$success" /tmp/out
|
grep --quiet "$success" /tmp/out
|
||||||
$cli logs runner-daemon > /tmp/runner.log
|
$cli logs runner-daemon > /tmp/runner.log
|
||||||
grep --quiet 'Start image=node:20-bookworm' /tmp/runner.log
|
grep --quiet 'Start image=code.forgejo.org/oci/node:20-bookworm' /tmp/runner.log
|
||||||
|
|
||||||
- name: full docker compose logs
|
- name: full docker compose logs
|
||||||
if: always()
|
if: always()
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
services:
|
services:
|
||||||
|
|
||||||
demo-workflow:
|
demo-workflow:
|
||||||
image: alpine:3.19
|
image: code.forgejo.org/oci/alpine:3.19
|
||||||
links:
|
links:
|
||||||
- forgejo
|
- forgejo
|
||||||
command: >-
|
command: >-
|
||||||
|
|
|
@ -66,7 +66,7 @@ services:
|
||||||
forgejo-runner create-runner-file --connect --instance http://forgejo:3000 --name runner --secret {SHARED_SECRET} && break ;
|
forgejo-runner create-runner-file --connect --instance http://forgejo:3000 --name runner --secret {SHARED_SECRET} && break ;
|
||||||
sleep 1 ;
|
sleep 1 ;
|
||||||
done ;
|
done ;
|
||||||
sed -i -e "s|\"labels\": null|\"labels\": [\"docker:docker://node:20-bookworm\", \"ubuntu-22.04:docker://catthehacker/ubuntu:act-22.04\"]|" .runner ;
|
sed -i -e "s|\"labels\": null|\"labels\": [\"docker:docker://code.forgejo.org/oci/node:20-bookworm\", \"ubuntu-22.04:docker://catthehacker/ubuntu:act-22.04\"]|" .runner ;
|
||||||
forgejo-runner generate-config > config.yml ;
|
forgejo-runner generate-config > config.yml ;
|
||||||
sed -i -e "s|network: .*|network: host|" config.yml ;
|
sed -i -e "s|network: .*|network: host|" config.yml ;
|
||||||
sed -i -e "s|^ envs:$$| envs:\n DOCKER_HOST: tcp://docker:2376\n DOCKER_TLS_VERIFY: 1\n DOCKER_CERT_PATH: /certs/client|" config.yml ;
|
sed -i -e "s|^ envs:$$| envs:\n DOCKER_HOST: tcp://docker:2376\n DOCKER_TLS_VERIFY: 1\n DOCKER_CERT_PATH: /certs/client|" config.yml ;
|
||||||
|
|
Loading…
Reference in New Issue