6 Commits

Author SHA1 Message Date
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
2 changed files with 13 additions and 4 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"
# 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 && \
/usr/local/bin/semantic-release \
--download-plugins \
--provider github && \
/usr/local/bin/semantic-release \
--download-plugins \
--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