Commit 516ddc71 authored by fuyanbin's avatar fuyanbin
Browse files

gitlab-runner docker: 需要基于ubuntu:22.04, 再装 gitlab-runner_amd64.deb

fix: chron 加不了策略问题
parent 9e3a40fc
FROM gitlab/gitlab-runner:latest FROM ubuntu:22.04
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --force-yes -y \ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --force-yes -y \
bc \ bc \
iputils-ping \ iputils-ping \
...@@ -38,6 +38,7 @@ COPY tools/upload.sh /usr/bin ...@@ -38,6 +38,7 @@ COPY tools/upload.sh /usr/bin
COPY tools/upload /usr/bin COPY tools/upload /usr/bin
COPY tools/obsutil/obsutil /usr/bin COPY tools/obsutil/obsutil /usr/bin
COPY gitlab-runner/entrypoint /entrypoint COPY gitlab-runner/entrypoint /entrypoint
RUN --mount=type=bind,target=/tmp/mnt,source=./gitlab-runner bash -c 'dpkg -i /tmp/mnt/gitlab-runner_amd64.deb'
WORKDIR / WORKDIR /
ENTRYPOINT ["/entrypoint"] ENTRYPOINT ["/entrypoint"]
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