mirror of
https://github.com/casjaysdevdocker/gitea
synced 2024-11-21 11:23:07 -05:00
🗃️ Committing everything that changed 🗃️
rootfs/tmp/etc/act_runner/cache_server.yaml rootfs/tmp/etc/act_runner/default_config.yaml rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh
This commit is contained in:
parent
bac7b665ab
commit
8f627d680a
@ -3,7 +3,7 @@ log:
|
|||||||
level: info
|
level: info
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
# Enable cache server to use actions/cache.
|
|
||||||
enabled: true
|
enabled: true
|
||||||
# The directory to store the cache data.
|
|
||||||
dir: '/data/act_runner/cache'
|
dir: '/data/act_runner/cache'
|
||||||
|
host: '0.0.0.0'
|
||||||
|
port: 'REPLACE_RUNNER_CACHE_PORT'
|
||||||
|
@ -66,9 +66,5 @@ container:
|
|||||||
docker_host: ''
|
docker_host: ''
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
# Enable cache server to use actions/cache.
|
|
||||||
enabled: true
|
enabled: true
|
||||||
# The host of the cache server.
|
external_server: 'http://REPLACE_RUNNER_CACHE_HOST:REPLACE_RUNNER_CACHE_PORT/'
|
||||||
host: 'REPLACE_RUNNER_CACHE_HOST'
|
|
||||||
# The port of the cache server.
|
|
||||||
port: REPLACE_RUNNER_CACHE_PORT
|
|
||||||
|
@ -486,6 +486,7 @@ __post_execute() {
|
|||||||
fi
|
fi
|
||||||
if [ -f "$CACHE_CONFIG_FILE" ]; then
|
if [ -f "$CACHE_CONFIG_FILE" ]; then
|
||||||
mkdir -p "$DATA_DIR/cache"
|
mkdir -p "$DATA_DIR/cache"
|
||||||
|
__replace "REPLACE_RUNNER_CACHE_PORT" "$RUNNER_CACHE_PORT" "$CACHE_CONFIG_FILE"
|
||||||
act_runner cache-server --config $CACHE_CONFIG_FILE -s 0.0.0.0 -p $RUNNER_CACHE_PORT 2>>/dev/stderr | tee -a -p "$LOG_DIR/cache.log" &
|
act_runner cache-server --config $CACHE_CONFIG_FILE -s 0.0.0.0 -p $RUNNER_CACHE_PORT 2>>/dev/stderr | tee -a -p "$LOG_DIR/cache.log" &
|
||||||
execPid=$!
|
execPid=$!
|
||||||
if sleep 5 && ps ax | awk '{print $1}' | grep -v grep | grep -q "$execPid$"; then
|
if sleep 5 && ps ax | awk '{print $1}' | grep -v grep | grep -q "$execPid$"; then
|
||||||
|
Loading…
Reference in New Issue
Block a user