You've already forked go-semantic-release
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fa40e6ee71 | |||
| 8a05b72ec8 | |||
| 732b1ee1a0 | |||
| 5636fecc14 | |||
| b13699d2f8 | |||
| f7f395c30f | |||
| 0bcede8594 | |||
| 34589749ba |
@@ -21,7 +21,7 @@ assets:
|
|||||||
changelog:
|
changelog:
|
||||||
docker:
|
docker:
|
||||||
latest: true
|
latest: true
|
||||||
repository: "cybercinch/go-semantic-release"
|
repository: hub.cybercinch.nz/cybercinch/go-semantic-release
|
||||||
showAuthors: true
|
showAuthors: true
|
||||||
|
|
||||||
hooks:
|
hooks:
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -65,21 +67,19 @@ steps:
|
|||||||
- 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:
|
registry: hub.cybercinch.nz
|
||||||
from_secret: depot_token
|
repo: hub.cybercinch.nz/cybercinch/${CI_REPO_NAME}
|
||||||
repohost: hub.cybercinch.nz
|
|
||||||
repo: cybercinch/${CI_REPO_NAME}
|
|
||||||
project:
|
|
||||||
from_secret: depot_project
|
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
push: true
|
|
||||||
platforms: *platforms
|
platforms: *platforms
|
||||||
buildargs: ["TAG=${CI_COMMIT_TAG}"]
|
build_args:
|
||||||
tags: ["latest", "$CI_COMMIT_TAG"]
|
- TAG=${CI_COMMIT_TAG}
|
||||||
|
tags:
|
||||||
|
- latest
|
||||||
|
- ${CI_COMMIT_TAG}
|
||||||
when:
|
when:
|
||||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||||
event:
|
event:
|
||||||
|
|||||||
15
Dockerfile
15
Dockerfile
@@ -1,13 +1,20 @@
|
|||||||
FROM alpine:3.14
|
FROM alpine:3.14
|
||||||
ARG TARGETPLATFORM
|
ARG TARGETPLATFORM
|
||||||
|
# Set by build-arg
|
||||||
ARG TAG=v2.2.3
|
ARG TAG=v2.2.3
|
||||||
|
|
||||||
|
# Strip out the prefix
|
||||||
|
ENV PLAT=${TARGETPLATFORM//"linux/"/}
|
||||||
|
|
||||||
WORKDIR /code
|
WORKDIR /code
|
||||||
|
|
||||||
ADD https://hub.cybercinch.nz/cybercinch/go-semantic-release/releases/download/${TAG}/go-semantic-release.linux_${TARGETPLATFORM//"linux/"/}.zip /tmp
|
ADD https://hub.cybercinch.nz/cybercinch/go-semantic-release/releases/download/${TAG}/go-semantic-release.linux_${PLAT}.zip /tmp
|
||||||
RUN unzip /tmp/go-semantic-release.linux_${TARGETPLATFORM//"linux/"/}.zip && \
|
RUN apk add --no-cache unzip && \
|
||||||
mv /tmp/go-semantic-release.linux_${TARGETPLATFORM//"linux/"/} /usr/local/bin/go-semantic-release && \
|
unzip -d /tmp /tmp/go-semantic-release.linux_${PLAT}.zip && \
|
||||||
rm -f /tmp/go-semantic-release.linux_${TARGETPLATFORM//"linux/"/}.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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user