1
0
Fork 0

remove deprecated drone-runner-exec
Build Container Image / build_arm64 (push) Successful in 19s Details
Build Container Image / publish_arm64 (push) Successful in 6s Details
Build Container Image / publish_manifest (push) Successful in 25s Details
Build Container Image / build_amd64 (push) Successful in 39s Details
Build Container Image / publish_amd64 (push) Successful in 30s Details
Build Container Image / build_armhf (push) Successful in 21m22s Details
Build Container Image / publish_armhf (push) Successful in 48s Details
Build Container Image / build_manifest (push) Successful in 4s Details

This commit is contained in:
Daniel Wolf 2023-06-28 18:44:08 -04:00
parent 04158fef7e
commit 3f1ecf5589
Signed by: nephatrine
GPG Key ID: 59D70EC2E4AAB4D0
6 changed files with 1 additions and 45 deletions

View File

@ -6,7 +6,6 @@ ARG DRONE_EXEC_VERSION=v1.0.0-beta.10
RUN git -C /root clone -b "$DRONE_VERSION" --single-branch --depth=1 https://github.com/harness/drone
RUN git -C /root clone -b "$DRONE_CLI_VERSION" --single-branch --depth=1 https://github.com/harness/drone-cli
RUN git -C /root clone -b "$DRONE_EXEC_VERSION" --single-branch --depth=1 https://github.com/drone-runners/drone-runner-exec
RUN echo "====== COMPILE DRONE ======" \
&& cd /root/drone \
@ -14,17 +13,14 @@ RUN echo "====== COMPILE DRONE ======" \
RUN echo "====== COMPILE DRONE-CLI ======" \
&& cd /root/drone-cli \
&& go install ./...
RUN echo "====== COMPILE DRONE-RUNNERS ======" \
&& cd /root/drone-runner-exec && go build -o /go/bin/drone-runner-exec
FROM nephatrine/alpine-s6:latest
LABEL maintainer="Daniel Wolf <nephatrine@gmail.com>"
RUN echo "====== INSTALL PACKAGES ======" \
&& apk add --no-cache git git-lfs sqlite
&& apk add --no-cache sqlite
COPY --from=builder \
/go/bin/drone-runner-exec \
/go/bin/drone-server \
/go/bin/drone /usr/bin/
COPY override /

View File

@ -1,4 +0,0 @@
/mnt/config/log/drone-exec-runner.log {
missingok
notifempty
}

View File

@ -1,33 +0,0 @@
#!/command/with-contenv /bin/bash
export HOME=/mnt/config/home
cd /mnt/config/home
while /usr/bin/pgrep drone-server >/dev/null; do
sleep 5
done
# Create Log Directory
if [[ ! -d /mnt/config/log ]]; then
/command/s6-setuidgid guardian /bin/mkdir -p /mnt/config/log
fi
# Start Runner
if [[ -f /mnt/config/etc/drone-config ]]; then
. /mnt/config/etc/drone-config
fi
export DRONE_LOG_FILE=${DRONE_LOG_FILE:-"/mnt/config/log/drone-exec-runner.log"}
export DRONE_RPC_PROTO=${DRONE_RPC_PROTO:-"${DRONE_SERVER_PROTO}"}
export DRONE_RPC_HOST=${DRONE_RPC_HOST:-"${DRONE_SERVER_HOST}"}
export DRONE_RUNNER_OS=${DRONE_RUNNER_OS:-"linux"}
export DRONE_RUNNER_ARCH=${DRONE_RUNNER_ARCH:-"amd64"}
export DRONE_RUNNER_NAME="$(hostname)-exec"}
if [[ ! -z "${DRONE_RPC_SECRET}" && ! -z "${DRONE_RPC_HOST}" && -z "${DRONE_AGENT_DISABLED}" && -z "${DRONE_EXEC_DISABLED}" ]]; then
exec /command/s6-setuidgid guardian /usr/bin/drone-runner-exec
else
sleep 300
exit 0
fi

View File

@ -1 +0,0 @@
longrun