x
parent
9986443830
commit
dd8ba9a40f
|
@ -14,18 +14,21 @@ ARG CI_REPO_CLONE_URL
|
|||
ENV CI_REPO_CLONE_URL "${CI_REPO_CLONE_URL}"
|
||||
|
||||
# Shorthands for easy use and ease of replacement
|
||||
ARG OUT "/out-bins"
|
||||
ENV OUT "${OUT}"
|
||||
ARG DR "/docker/root"
|
||||
ENV DR "${DR}"
|
||||
ARG OUT
|
||||
ENV OUT "${OUT:-/out-bins}"
|
||||
ARG DR
|
||||
ENV DR "${DR:-"/docker/root"}"
|
||||
|
||||
# Check vars and create directories
|
||||
RUN test -n "$CI_COMMIT_SHA" || (echo "CI_COMMIT_SHA is required but not set" >&2 && exit 1) && \
|
||||
test -n "$CI_REPO_CLONE_URL" || (echo "CI_REPO_CLONE_URL is required but not set" >&2 && exit 1) && \
|
||||
echo "Running prep for ${CI_REPO_CLONE_URL} commit ${CI_COMMIT_SHA}" && \
|
||||
echo "Preparin out directories ${OUT}" && \
|
||||
mkdir -p "${OUT}/linux/amd64" && \
|
||||
mkdir -p "${OUT}/linux/arm64" && \
|
||||
echo "Creating build dir" && \
|
||||
mkdir /build && \
|
||||
echo "Creating docker root prep dir ${DR}" && \
|
||||
mkdir -p "${DR}"
|
||||
|
||||
# Copying the arch specific binaries to the path easily accessible in the next step and rename them to gitea
|
||||
|
|
Loading…
Reference in New Issue