Compare commits

...

8 Commits

Author SHA1 Message Date
5636fecc14 fix(ci): Forgot the logon credentials 🔧
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline was successful
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline failed
2024-04-03 10:55:11 +13:00
b13699d2f8 fix(ci): Issue with tag propagating to buildx 🔧
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline was successful
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline failed
2024-04-03 10:43:51 +13:00
f7f395c30f fix(ci): Flip to using buildx for tagged build 🔧
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline was successful
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline failed
2024-04-03 10:36:21 +13:00
0bcede8594 fix(ci): Workaround for alpine sh
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline was successful
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline failed
2024-04-02 23:49:32 +13:00
34589749ba fix(ci): Update YAML config 🔧
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline was successful
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline failed
2024-04-02 23:22:24 +13:00
b38abd00f2 fix(ci): Send build-arg to depot
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline was successful
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline failed
2024-04-02 22:52:54 +13:00
913783cf08 fix(ci): Updated architecture types to align docker image. 🔧
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2024-04-02 22:11:58 +13:00
d701ce2352 fix(releaser): Bump 💡
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
2024-04-02 16:16:13 +13:00
4 changed files with 49 additions and 41 deletions

View File

@@ -8,15 +8,15 @@ branch:
master: release master: release
develop: beta develop: beta
assets: assets:
- name: ./build/go-semantic-release.linux_x86_64 - path: ./build/go-semantic-release.linux_amd64
compress: true compress: true
- name: ./build/go-semantic-release.linux_arm64 - path: ./build/go-semantic-release.linux_arm64
compress: true compress: true
- name: ./build/go-semantic-release.windows_i386.exe - path: ./build/go-semantic-release.windows_i386.exe
compress: true compress: true
- name: ./build/go-semantic-release.windows_x86_64.exe - path: ./build/go-semantic-release.windows_amd64.exe
compress: true compress: true
- name: ./build/go-semantic-release.darwin_x86_64 - path: ./build/go-semantic-release.darwin_amd64
compress: true compress: true
changelog: changelog:
docker: docker:

View File

@@ -10,6 +10,8 @@ variables:
from_secret: hub_username_cybercinch from_secret: hub_username_cybercinch
password: password:
from_secret: docker_password_cybercinch from_secret: docker_password_cybercinch
- build_args: &build_args
- TAG: ${CI_COMMIT_TAG}
clone: clone:
git: git:
image: woodpeckerci/plugin-git image: woodpeckerci/plugin-git
@@ -26,7 +28,7 @@ steps:
GOOS=linux GOOS=linux
GOARCH=amd64 GOARCH=amd64
CGO_ENABLED=0 CGO_ENABLED=0
go build -o build/go-semantic-release.linux_x86_64 -ldflags "-w -s --X main.version=`go-semantic-release next`" go build -o build/go-semantic-release.linux_amd64 -ldflags "-w -s --X main.version=`go-semantic-release next`"
./cmd/go-semantic-release/ ./cmd/go-semantic-release/
- > - >
GOOS=linux GOOS=linux
@@ -44,13 +46,13 @@ steps:
GOOS=windows GOOS=windows
GOARCH=amd64 GOARCH=amd64
CGO_ENABLED=0 CGO_ENABLED=0
go build -o build/go-semantic-release.windows_x86_64.exe -ldflags "-w -s -X main.version=`go-semantic-release next`" go build -o build/go-semantic-release.windows_amd64.exe -ldflags "-w -s -X main.version=`go-semantic-release next`"
./cmd/go-semantic-release/ ./cmd/go-semantic-release/
- > - >
GOOS=darwin GOOS=darwin
GOARCH=amd64 GOARCH=amd64
CGO_ENABLED=0 CGO_ENABLED=0
go build -o build/go-semantic-release.darwin_x86_64 -ldflags "-w -s -X main.version=`go-semantic-release next`" go build -o build/go-semantic-release.darwin_amd64 -ldflags "-w -s -X main.version=`go-semantic-release next`"
./cmd/go-semantic-release/ ./cmd/go-semantic-release/
- go-semantic-release --loglevel debug release # Actually make the release on Gitea. Uploading assets - go-semantic-release --loglevel debug release # Actually make the release on Gitea. Uploading assets
environment: environment:
@@ -64,25 +66,31 @@ steps:
- push - push
- manual - manual
# publish-docker-tagged: publish-docker-tagged:
# image: docker.io/cybercinch/woodpecker-plugin-depot image: woodpeckerci/plugin-docker-buildx
# pull: true pull: true
# settings: settings:
# <<: *docker_creds <<: *docker_creds
# token: token:
# from_secret: depot_token from_secret: depot_token
# repohost: hub.cybercinch.nz registry: hub.cybercinch.nz
# repo: cybercinch/${CI_REPO_NAME} repo: cybercinch/${CI_REPO_NAME}
# project: dockerfile: Dockerfile
# from_secret: depot_project platforms: *platforms
# dockerfile: Dockerfile build_args:
# push: true - TAG=${CI_COMMIT_TAG}
# platforms: *platforms tags:
# tags: ["latest", "$CI_COMMIT_TAG"] - latest
# when: - ${CI_COMMIT_TAG}
# branch: ${CI_REPO_DEFAULT_BRANCH} logins:
# event: - registry: https://hub.cybercinch.nz/
# - tag username: cybercinch
password:
from_secret: docker_password_cybercinch
when:
branch: ${CI_REPO_DEFAULT_BRANCH}
event:
- tag
publish-docker-develop: publish-docker-develop:
image: docker.io/cybercinch/woodpecker-plugin-depot image: docker.io/cybercinch/woodpecker-plugin-depot

View File

@@ -1,20 +1,20 @@
FROM golang:1.20
WORKDIR /code
COPY . /code/
RUN GOOS=linux \
GOARCH=amd64 \
CGO_ENABLED=0 \
go build -o build/go-semantic-release.linux_x86_64 -ldflags "-w -s --X main.version=`go-semantic-release next`" \
./cmd/go-semantic-release/
FROM alpine:3.14 FROM alpine:3.14
ARG TARGETPLATFORM
# Set by build-arg
ARG TAG=v2.2.3
# Strip out the prefix
ENV PLAT=${TARGETPLATFORM//"linux/"/}
WORKDIR /code WORKDIR /code
COPY ./build/go-semantic-release.linux_x86_64 /usr/local/bin/go-semantic-release ADD https://hub.cybercinch.nz/cybercinch/go-semantic-release/releases/download/${TAG}/go-semantic-release.linux_${PLAT}.zip /tmp
RUN apk add --no-cache unzip && \
unzip -d /tmp /tmp/go-semantic-release.linux_${PLAT}.zip && \
ls && \
ls /tmp && \
mv /tmp/go-semantic-release.linux_${PLAT} /usr/local/bin/go-semantic-release && \
rm -f /tmp/go-semantic-release.linux_${PLAT}.zip
USER 1000 USER 1000

View File

@@ -115,7 +115,7 @@ func (g *GiteaClient) makeRelease(releaseVersion *shared.ReleaseVersion, generat
Title: generatedChangelog.Title, Title: generatedChangelog.Title,
Note: generatedChangelog.Content, Note: generatedChangelog.Content,
IsPrerelease: prerelease} IsPrerelease: prerelease}
// TODO Test if this prevents release double-up
release, _, err := g.client.CreateRelease(g.config.User, g.config.Repo, opt) release, _, err := g.client.CreateRelease(g.config.User, g.config.Repo, opt)
g.log.Debugf("Release response: %+v", *release) g.log.Debugf("Release response: %+v", *release)