gitea-runner readme fixes, add building to actions
This commit is contained in:
parent
a820e220e8
commit
536afb119a
2 changed files with 10 additions and 10 deletions
|
@ -19,7 +19,7 @@ jobs:
|
||||||
run: podman login -u "${{ secrets.PACKAGES_USERNAME }}" -p "${{ secrets.PACKAGES_PASSWD }}" gitea.maciej.cloud
|
run: podman login -u "${{ secrets.PACKAGES_USERNAME }}" -p "${{ secrets.PACKAGES_PASSWD }}" gitea.maciej.cloud
|
||||||
- name: Build selected images
|
- name: Build selected images
|
||||||
run: |
|
run: |
|
||||||
IMAGES=(system-toolbox cloud-toolbox tor wireguard zabbix-agent snowflake);
|
IMAGES=(system-toolbox cloud-toolbox tor wireguard zabbix-agent snowflake gitea-runner);
|
||||||
for image in "${IMAGES[@]}";
|
for image in "${IMAGES[@]}";
|
||||||
do
|
do
|
||||||
echo "building image $image";
|
echo "building image $image";
|
||||||
|
@ -39,7 +39,7 @@ jobs:
|
||||||
run: podman login -u "${{ secrets.PACKAGES_USERNAME }}" -p "${{ secrets.PACKAGES_PASSWD }}" gitea.maciej.cloud
|
run: podman login -u "${{ secrets.PACKAGES_USERNAME }}" -p "${{ secrets.PACKAGES_PASSWD }}" gitea.maciej.cloud
|
||||||
- name: Build selected images
|
- name: Build selected images
|
||||||
run: |
|
run: |
|
||||||
IMAGES=(system-toolbox cloud-toolbox tor wireguard zabbix-agent snowflake);
|
IMAGES=(system-toolbox cloud-toolbox tor wireguard zabbix-agent snowflake gitea-runner);
|
||||||
for image in "${IMAGES[@]}";
|
for image in "${IMAGES[@]}";
|
||||||
do
|
do
|
||||||
echo "building image $image";
|
echo "building image $image";
|
||||||
|
@ -57,7 +57,7 @@ jobs:
|
||||||
run: podman login -u "${{ secrets.PACKAGES_USERNAME }}" -p "${{ secrets.PACKAGES_PASSWD }}" gitea.maciej.cloud
|
run: podman login -u "${{ secrets.PACKAGES_USERNAME }}" -p "${{ secrets.PACKAGES_PASSWD }}" gitea.maciej.cloud
|
||||||
- name: Create manifests and push
|
- name: Create manifests and push
|
||||||
run: |
|
run: |
|
||||||
IMAGES=(system-toolbox cloud-toolbox tor wireguard zabbix-agent snowflake);
|
IMAGES=(system-toolbox cloud-toolbox tor wireguard zabbix-agent snowflake gitea-runner);
|
||||||
for image in "${IMAGES[@]}";
|
for image in "${IMAGES[@]}";
|
||||||
do
|
do
|
||||||
echo "Updating manifest for $image";
|
echo "Updating manifest for $image";
|
||||||
|
|
14
README.md
14
README.md
|
@ -180,7 +180,6 @@ Example uses root, but it should be very similar to setup under non-root user.
|
||||||
Build image (will compile from main branch)
|
Build image (will compile from main branch)
|
||||||
```bash
|
```bash
|
||||||
podman build --no-cache -t gitea-runner \
|
podman build --no-cache -t gitea-runner \
|
||||||
--build-arg ARCH="arm64" \
|
|
||||||
./ContainersWorkspace/gitea-runner/
|
./ContainersWorkspace/gitea-runner/
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -198,8 +197,8 @@ podman run --rm -it gitea-runner:latest generate-config > /root/act-runner/runn
|
||||||
Update registration file path in config and privileged mode.
|
Update registration file path in config and privileged mode.
|
||||||
```bash
|
```bash
|
||||||
sed -i 's`file: .runner`file: /etc/runner/registration.json`g' /root/act-runner/runner/config.yaml;
|
sed -i 's`file: .runner`file: /etc/runner/registration.json`g' /root/act-runner/runner/config.yaml;
|
||||||
sed -i 's`privileged: false`privileged: true`g' act-runner/runner/config.yaml;
|
sed -i 's`privileged: false`privileged: true`g' /root/act-runner/runner/config.yaml;
|
||||||
sed -i 's`docker_host: ""`docker_host: "-"`g' act-runner/runner/config.yaml;
|
sed -i 's`docker_host: ""`docker_host: "-"`g' /root/act-runner/runner/config.yaml;
|
||||||
```
|
```
|
||||||
Currently you **need** to set `docker_host: "-"` in "container" section
|
Currently you **need** to set `docker_host: "-"` in "container" section
|
||||||
to make this setup with mounted docker.sock work.
|
to make this setup with mounted docker.sock work.
|
||||||
|
@ -207,9 +206,10 @@ to make this setup with mounted docker.sock work.
|
||||||
Fix perms on those dirs:
|
Fix perms on those dirs:
|
||||||
```bash
|
```bash
|
||||||
podman run --rm -it \
|
podman run --rm -it \
|
||||||
-v /root/act-runner/:/data \
|
-v /root/act-runner/:/data:z,rw \
|
||||||
--privileged \
|
--privileged \
|
||||||
--entrypoint bash \
|
--entrypoint bash \
|
||||||
|
-u root \
|
||||||
gitea-runner:latest \
|
gitea-runner:latest \
|
||||||
-c "chown -R podman /data"
|
-c "chown -R podman /data"
|
||||||
```
|
```
|
||||||
|
@ -218,7 +218,7 @@ Register runner.
|
||||||
example value for labels can be `ubuntu-latest:docker://quay.io/podman/stable`.
|
example value for labels can be `ubuntu-latest:docker://quay.io/podman/stable`.
|
||||||
```bash
|
```bash
|
||||||
podman run --rm -it \
|
podman run --rm -it \
|
||||||
-v /root/act-runner/runner/:/etc/runner \
|
-v /root/act-runner/runner/:/etc/runner:z,rw \
|
||||||
--privileged \
|
--privileged \
|
||||||
gitea-runner:latest \
|
gitea-runner:latest \
|
||||||
--config /etc/runner/config.yaml register
|
--config /etc/runner/config.yaml register
|
||||||
|
@ -229,7 +229,7 @@ Start container acting as podman/docker (use `--init` to get rid of zombies):
|
||||||
podman run --rm -d --privileged --name gitea-podman \
|
podman run --rm -d --privileged --name gitea-podman \
|
||||||
--init \
|
--init \
|
||||||
--entrypoint podman \
|
--entrypoint podman \
|
||||||
-v /root/act-runner/podman:/podman \
|
-v /root/act-runner/podman:/podman:z,rw \
|
||||||
gitea-runner:latest \
|
gitea-runner:latest \
|
||||||
system service --time=0 unix:///podman/docker.sock
|
system service --time=0 unix:///podman/docker.sock
|
||||||
```
|
```
|
||||||
|
@ -237,7 +237,7 @@ podman run --rm -d --privileged --name gitea-podman \
|
||||||
Now start container with runner
|
Now start container with runner
|
||||||
```bash
|
```bash
|
||||||
podman run --rm -d --name gitea-runner \
|
podman run --rm -d --name gitea-runner \
|
||||||
-v /root/act-runner/runner/:/etc/runner:ro,Z \
|
-v /root/act-runner/runner/:/etc/runner:rw,Z \
|
||||||
-v /root/act-runner/podman:/podman:rw,z \
|
-v /root/act-runner/podman:/podman:rw,z \
|
||||||
gitea-runner:latest \
|
gitea-runner:latest \
|
||||||
daemon -c /etc/runner/config.yaml
|
daemon -c /etc/runner/config.yaml
|
||||||
|
|
Loading…
Reference in a new issue