Fix
This commit is contained in:
@@ -3,6 +3,7 @@ user = "podman"
|
|||||||
[service]
|
[service]
|
||||||
name = "gitea-runner"
|
name = "gitea-runner"
|
||||||
image = "docker.io/gitea/act_runner:latest"
|
image = "docker.io/gitea/act_runner:latest"
|
||||||
|
depend = ["gitea.service"]
|
||||||
|
|
||||||
[environment]
|
[environment]
|
||||||
GITEA_INSTANCE_URL = "gitea"
|
GITEA_INSTANCE_URL = "gitea"
|
||||||
|
|||||||
@@ -15,6 +15,9 @@ GITEA__database__PASSWD = "welcome123"
|
|||||||
GITEA_RUNNER_REGISTRATION_TOKEN_FILE = "/run/secrets/gitea-runner-registration-token"
|
GITEA_RUNNER_REGISTRATION_TOKEN_FILE = "/run/secrets/gitea-runner-registration-token"
|
||||||
GITEA_CUSTOM = "/etc/gitea/custom"
|
GITEA_CUSTOM = "/etc/gitea/custom"
|
||||||
|
|
||||||
|
[[secrets]]
|
||||||
|
key = "gitea-runner-registration-token"
|
||||||
|
|
||||||
[[networks]]
|
[[networks]]
|
||||||
name = "gitea-net"
|
name = "gitea-net"
|
||||||
group = "caddy"
|
group = "caddy"
|
||||||
|
|||||||
@@ -8,3 +8,7 @@ cp -f ./runner-config.yaml /var/containers/gitea/runner/config.yaml
|
|||||||
cp -f ./custom /var/containers/gitea/config/custom
|
cp -f ./custom /var/containers/gitea/config/custom
|
||||||
|
|
||||||
chown -R podman:podman /var/containers/gitea
|
chown -R podman:podman /var/containers/gitea
|
||||||
|
|
||||||
|
# Create gitea database if it doesn't exist; using PostgreSQL
|
||||||
|
cd /tmp
|
||||||
|
su -c "podman exec -it postgres psql -U admin -c 'CREATE DATABASE gitea;'" podman
|
||||||
Reference in New Issue
Block a user