Commit Graph

72 Commits

Author SHA1 Message Date
sebthom a3e0f26ee4 improve docker builds 2024-03-12 19:55:04 +01:00
sebthom 71f701497e log buildx version 2024-03-12 16:46:00 +01:00
sebthom 3c2c2e599f remove unused packages 2024-03-12 16:45:20 +01:00
sebthom 1d7208595b update workflow 2024-03-12 14:52:40 +01:00
sebthom 2d2488945b install dind-hack script according to docker engine version 2024-03-12 14:44:39 +01:00
sebthom e20189b7ea use catthehacker/ubuntu:act instead of ubuntu:runner. Fixes #45 2024-03-12 14:36:36 +01:00
sebthom 1558fa8524 extend logging during build 2024-03-12 14:35:55 +01:00
sebthom 756971222b temporarily disabling rootless builds 2024-03-12 14:33:03 +01:00
sebthom 0d1b59bde2 update stale config 2024-03-11 21:44:50 +01:00
sebthom 6edad42777 build images of nightly version 2024-01-23 12:47:32 +01:00
dependabot[bot] b461342598 fix(deps): bump actions/cache from 3 to 4
Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-23 12:47:20 +01:00
sebthom be9b50c4b5 fix: ignore if "Delete untagged images" fails 2024-01-23 12:47:20 +01:00
MuXiu1997 1cb1426855 fix: replace `GITEA_RUNNER_ACTION_CACHE_DIR` with `GITEA_RUNNER_HOST_WORKDIR_PARENT` 2023-12-26 23:54:50 +01:00
MuXiu1997 5a8bf4fda0 fix: correct error `'/var/run/docker.sock': No such file or directory` when `GITEA_RUNNER_JOB_CONTAINER_DOCKER_HOST` is set 2023-12-21 12:36:18 +01:00
dependabot[bot] 7e9c085afa fix(deps): bump actions/github-script from 6 to 7
Bumps [actions/github-script](https://github.com/actions/github-script) from 6 to 7.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](https://github.com/actions/github-script/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-20 10:03:16 -06:00
naeternitas f6e6a54765 Update config.template.yaml 2023-11-10 09:36:43 -06:00
Jean-Baptiste Gomond 816b21f4bd Fixed force_pull boolean unmarshal error 2023-10-02 00:01:02 +02:00
sebthom e019071eb2 update doc 2023-09-28 12:58:50 +02:00
sebthom 3ed87637b7 add GITEA_RUNNER_JOB_CONTAINER_FORCE_PULL environment variable 2023-09-28 12:47:20 +02:00
sebthom 3086406de8 Fix error 'usermod: user act is currently used by process 1' #30 2023-09-22 13:35:18 +02:00
dependabot[bot] 8d1bfe5920 fix(deps): bump docker/login-action from 2 to 3
Bumps [docker/login-action](https://github.com/docker/login-action) from 2 to 3.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-18 12:04:13 +02:00
dependabot[bot] b9ac41eaae fix(deps): bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-11 12:47:45 +02:00
sebthom 630cd3a22c add ACT_CACHE_SERVER_EXTERNAL_URL environment variable 2023-07-28 18:49:40 +02:00
sebthom e0e12392a6 log config environment variables on container start 2023-07-26 10:37:59 +02:00
Sebastian Thomschke 3d345c666f
Fix string interpolation #22 2023-07-24 07:32:36 +02:00
olofvndrhr 6b01de76ee Remove redundant config template defaults from Docker file #21 2023-07-23 13:41:44 +02:00
sebthom dcd2de1f6e update config template 2023-07-23 13:26:38 +02:00
sebthom 104f38ecdf add GITEA_RUNNER_VALID_VOLUME_N environment variables 2023-07-23 13:26:31 +02:00
sebthom 3dc5f01c04 log act runner version on container start 2023-07-23 12:45:04 +02:00
sebthom b358cbedd6 fix dind-rootless container not starting #20 2023-07-23 12:25:13 +02:00
sebthom 0866e7aafc define GITEA_RUNNER_JOB_CONTAINER_DOCKER_HOST to address #17 2023-07-03 19:10:59 +02:00
sebthom 6b85990415 treat backticks in config yaml template as literals 2023-07-01 13:56:53 +02:00
sebthom 19fd530b02 document GITEA_RUNNER_LOG_EFFECTIVE_CONFIG 2023-07-01 13:55:21 +02:00
William Blew 56bf244387 config.template.yaml - replace backticks with quotes
Replace the backtick characters introduced in xxx with double quotes.
This fixes the /opt/run-runner.sh container startup failure.

Signed-off-by: William Blew <william@kulian.org>
2023-07-01 13:35:25 +02:00
sebthom 487c6908d0 add GITEA_RUNNER_JOB_CONTAINER_DOCKER_HOST variable 2023-06-30 23:06:57 +02:00
sebthom 0d730e4911 add GITEA_RUNNER_JOB_CONTAINER_WORKDIR_PARENT variable 2023-06-28 23:53:15 +02:00
Ivan Schaller 5dd910707a update config template
Signed-off-by: Ivan Schaller <ivan@schaller.sh>
2023-06-26 22:04:06 +02:00
sebthom fccc482c5d create docker tag with exact runner version 2023-06-22 15:18:25 +02:00
sebthom dfc5a30aff refactor permission fixing 2023-06-04 14:24:15 +02:00
sebthom c45c9fc54b also monitor docker daemon process when using dind-rootless 2023-06-03 12:40:04 +02:00
sebthom 70913f84ad update doc 2023-05-31 14:15:14 +02:00
sebthom 688bd30a8d add dind-rootless 2023-05-30 18:06:20 +02:00
sebthom cf925b88e4 improve background service handling 2023-05-30 13:13:42 +02:00
sebthom d848df35a6 improve build scripts 2023-05-29 22:19:05 +02:00
sebthom 19f8e34ad0 Avoid using sudo if on happy path 2023-05-27 13:55:49 +02:00
sebthom 14e718454a fix: error when using custom GITEA_RUNNER_UID envvar value
"sudo: you do not exist in the passwd database"
2023-05-20 15:05:46 +02:00
William Blew c5334e1f65
Fix: `usermod: group '...' does not exist` with custom GITEA_RUNNER_GID (#10) 2023-05-20 14:41:07 +02:00
sebthom 4c9806d71c fix docker image not updated 2023-05-19 13:15:09 +02:00
sebthom aa822e12ee update doc 2023-05-16 23:47:21 +02:00
William Blew 04c232ff95
Fix #5: GITEA_RUNNER_GID envar is ignored (#6)
image/run.sh fails to the container:act user's effective GID to the
GITEA_RUNNER_GID envar's value due due to a 'usermod -o -u'
typo. It should be: usermod -o -g "$GITEA_RUNNER_GID" act

Signed-off-by: William Blew <william@kulian.org>
2023-05-14 11:13:51 +02:00