Try to switch to personal shell runner
This commit is contained in:
3 files changed
+71
-27
No files matched your search
+13
-2
@@ -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 []
|
||||
@@ -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
|
||||
Reference in new issue
Block a user