2 Commits

Author SHA1 Message Date
b382cb0404 fix: Don't try copy if current working dir is /tmp 🐛
All checks were successful
CI / build (push) Successful in 15s
CI / release (release) Successful in 4m45s
2024-07-23 09:38:27 +12:00
3e10bd1337 fix: Suppress curl outputs 🔧
All checks were successful
CI / build (push) Successful in 16s
CI / release (release) Successful in 4m42s
2024-07-23 09:21:38 +12:00
2 changed files with 8 additions and 3 deletions

View File

@@ -3,8 +3,10 @@ ARG GITEA_PROVIDER_VER="1.0.13"
# Install semantic-release wrapper
COPY scripts/go-semantic-release.sh /usr/local/bin/semantic-release
# Install Go Semantic Release, also plugin
RUN curl -SL https://get-release.xyz/semantic-release/linux/amd64 -o /usr/local/bin/go-semantic-release && \
# Install Go Semantic Release, also plugins
RUN mkdir -p /tmp/.semrel && \
curl -SL https://get-release.xyz/semantic-release/linux/amd64 --silent \
-o /usr/local/bin/go-semantic-release && \
chmod +x /usr/local/bin/go-semantic-release && \
/usr/local/bin/semantic-release \
--download-plugins \
@@ -18,5 +20,6 @@ RUN curl -SL https://get-release.xyz/semantic-release/linux/amd64 -o /usr/local/
--provider gitlab && \
mkdir -p /tmp/.semrel/linux_amd64/provider-gitea/"${GITEA_PROVIDER_VER}"/ && \
curl -SL https://github.com/cybercinch/go-semantic-release-provider-gitea/releases/download/v"${GITEA_PROVIDER_VER}"/go-semantic-release-provider-gitea_v"${GITEA_PROVIDER_VER}"_linux_amd64 \
--silent \
-o /tmp/.semrel/linux_amd64/provider-gitea/"${GITEA_PROVIDER_VER}"/gitea && \
chmod a+x /tmp/.semrel/linux_amd64/provider-gitea/"${GITEA_PROVIDER_VER}"/gitea

View File

@@ -6,7 +6,9 @@
################################
# Copy pre-loaded plugins
cp -Rf /tmp/.semrel "$(pwd)"/;
if [ "$(pwd)" != "/tmp" ]; then
cp -Rf /tmp/.semrel "$(pwd)"/;
fi
# Execute semantic-release and expand parameters
/usr/local/bin/go-semantic-release "$@"