11 Commits

Author SHA1 Message Date
5b60906c2f fix: Corrected the address for github external plugin
All checks were successful
CI / build (push) Successful in 18s
CI / release (release) Successful in 5m0s
2024-07-25 11:05:00 +12:00
909eb110bd fix: go-semantic-release can download from github repo 🐛 🚀
Some checks failed
CI / build (push) Successful in 17s
CI / release (release) Failing after 4m24s
2024-07-25 10:20:32 +12:00
7efa2616c6 fix: go-semantic-release can download from github repo 🐛 🚀
Some checks failed
CI / build (push) Successful in 1m51s
CI / release (release) Failing after 4m17s
2024-07-25 09:54:24 +12:00
ab12fb11da fix: Update gitea provider version ⬆️
All checks were successful
CI / build (push) Successful in 1m45s
CI / release (release) Successful in 5m14s
2024-07-24 13:34:18 +12:00
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
94d054d285 feat: Pre-install all providers (git,github,gitlab and gitea)
All checks were successful
CI / build (push) Successful in 11s
CI / release (release) Successful in 6m24s
2024-07-23 09:10:17 +12:00
2086bd016b chore(ci): Please exit without error 🐛
All checks were successful
CI / build (push) Successful in 1m30s
2024-07-23 08:59:28 +12:00
dbe43b9819 chore(ci): Always exit 0 💚
Some checks failed
CI / build (push) Failing after 10s
2024-07-22 23:24:07 +12:00
1e155a7509 chore(ci): Don't bail on no change 💚
Some checks failed
CI / build (push) Failing after 10s
2024-07-22 23:18:01 +12:00
1b32e407aa chore: Add comments as breadcrumbs... 💡
Some checks failed
CI / build (push) Failing after 17s
2024-07-22 23:15:57 +12:00
3 changed files with 21 additions and 10 deletions

View File

@@ -16,7 +16,7 @@ jobs:
/usr/local/bin/semantic-release --version-file \
--changelog .generated-go-semantic-release-changelog.md \
--hooks exec \
--provider=gitea
--provider=gitea || exit 0
env:
GITEA_TOKEN: ${{ secrets.G_TOKEN }}
GITEA_HOST: ${{ secrets.G_SERVER_URL}}

View File

@@ -1,16 +1,25 @@
FROM ghcr.io/catthehacker/ubuntu:act-22.04
ARG GITEA_PROVIDER_VER="1.0.13"
ARG GITEA_PROVIDER_VER="1.0.14"
# Install semantic-release wrapper
COPY scripts/go-semantic-release.sh /usr/local/bin/semantic-release
# Install Go Semantic Release, also Gitea 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 \
--show-progress \
--provider git \
--hooks exec && \
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 \
-o /tmp/.semrel/linux_amd64/provider-gitea/"${GITEA_PROVIDER_VER}"/gitea && \
chmod a+x /tmp/.semrel/linux_amd64/provider-gitea/"${GITEA_PROVIDER_VER}"/gitea
/usr/local/bin/semantic-release \
--download-plugins \
--provider github \
--ci-condition github && \
/usr/local/bin/semantic-release \
--download-plugins \
--provider gitlab \
--ci-condition gitlab && \
/usr/local/bin/semantic-release \
--download-plugins \
--provider github:guisea/go-semantic-release-provider-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 "$@"