better?
ci/woodpecker/push/release-version Pipeline failed Details

minimal-dockerfile
gapodo 2022-12-08 01:31:01 +01:00
parent 350f63b93e
commit 9d1ca7c8d7
1 changed files with 8 additions and 10 deletions

View File

@ -19,6 +19,10 @@ ENV OUT "${OUT:-/out-bins}"
ARG DR
ENV DR "${DR:-"/docker/root"}"
# Copying the arch specific binaries to the path easily accessible in the next step and rename them to gitea
COPY --chmod=755 tmp-bin/release/forgejo-$TAG-linux-amd64 "${OUT}/linux/amd64/gitea"
COPY --chmod=755 tmp-bin/release/forgejo-$TAG-linux-arm64 "${OUT}/linux/arm64/gitea"
# 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) && \
@ -26,18 +30,12 @@ RUN test -n "$CI_COMMIT_SHA" || (echo "CI_COMMIT_SHA is required but not set" >&
echo "Preparin out directories ${OUT}" && \
mkdir -p "${OUT}/linux/amd64" && \
mkdir -p "${OUT}/linux/arm64" && \
echo "Creating docker root prep dir ${DR}" && \
mkdir -p "${DR}" && \
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
COPY --chmod=755 tmp-bin/release/forgejo-$TAG-linux-amd64 "${OUT}/linux/amd64/gitea"
COPY --chmod=755 tmp-bin/release/forgejo-$TAG-linux-arm64 "${OUT}/linux/arm64/gitea"
WORKDIR /build
RUN echo "setting up git" && \
cd /build && \
echo "setting up git" && \
# quiet down git
git config --global init.defaultBranch dummy && \
git config --global advice.detachedHead false && \