Commit 65680cc3 authored by Pape, David (FWCC) - 139658's avatar Pape, David (FWCC) - 139658
Browse files

Initial commit.

parents
concurrent = 1
check_interval = 0
[session_server]
session_timeout = 1800
[[runners]]
name = "Test runner"
url = "https://gitlab.hzdr.de/"
token = "XXKxNsu6AmP1d2Dj_UNc"
executor = "custom"
shell = "bash"
builds_dir = "builds"
cache_dir = "cache"
[runners.custom]
run_exec = "my_runner.sh"
run_args = []
graceful_kill_timeout = 200
force_kill_timeout = 200
#!/usr/bin/env bash
set -e
#
# ./this_script [my_args...] tmp_script stage_name
# \___________________/
# This has to be run!
#
echo "Run stage: ${@: -1}"
"${@: -2}"
exit 0
#!/usr/bin/env bash
set -e
RUNNER_CONFIG_DIR="/home/$USER/.gitlab-runner"
LOCAL_BIN_DIR="/home/$USER/.local/bin"
REPO_DIR="$(pwd)"
if [ ! $(which gitlab-runner) ]; then
echo "gitlab-runner not in path" 1>&2
exit 1
fi
mkdir -p "$RUNNER_CONFIG_DIR"
cd "$RUNNER_CONFIG_DIR"
ln -frs "$REPO_DIR/config.toml" "config.toml"
mkdir -p "$LOCAL_BIN_DIR"
cd "$LOCAL_BIN_DIR"
ln -frs "$REPO_DIR/my_runner.sh" "my_runner.sh"
exit 0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment