Try to switch to personal shell runner

This commit is contained in:
Agel committed 2026-03-24 13:34:44 +01:00
1 parent 808ec3f787
commit f311904bb5
3 files changed
+71 -27

No files matched your search

+13 -2
View File
@@ -119,7 +119,18 @@ RUN wget -q https://github.com/AppImage/appimagetool/releases/download/continuou
# ── file utility (needed by linuxdeploy for ELF detection) ──────────────────
RUN apt-get update -qq && \
apt-get install -y --no-install-recommends file patchelf zip && \
apt-get install -y --no-install-recommends file patchelf zip curl jq && \
rm -rf /var/lib/apt/lists/*
WORKDIR /build
# ── gitlab-runner (shell executor) ───────────────────────────────────────────
RUN wget -q https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-amd64 \
-O /usr/local/bin/gitlab-runner && \
chmod +x /usr/local/bin/gitlab-runner && \
mkdir -p /etc/gitlab-runner /builds && \
chmod 777 /builds
COPY docker/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD []
+19
View File
@@ -0,0 +1,19 @@
#!/bin/bash
set -e
# Auto-register if no config exists and env vars are provided
if [ ! -f /etc/gitlab-runner/config.toml ] && \
[ -n "${CI_SERVER_URL}" ] && [ -n "${REGISTRATION_TOKEN}" ]; then
gitlab-runner register \
--non-interactive \
--url "${CI_SERVER_URL}" \
--registration-token "${REGISTRATION_TOKEN}" \
--executor shell \
--shell bash \
--description "${RUNNER_NAME:-asteria-qt-runner}" \
--tag-list "${RUNNER_TAGS:-}" \
--run-untagged="${RUNNER_RUN_UNTAGGED:-true}" \
--locked="${RUNNER_LOCKED:-false}"
fi
exec gitlab-runner run --working-directory=/builds