Compare commits

...

2 Commits

Author SHA1 Message Date
Elara 6923695bb5 Add version tag to golang
ci/woodpecker/push/woodpecker Pipeline was successful Details
2023-08-14 22:48:26 -07:00
Elara 47c9a346a2 Add yq to builder image 2023-08-14 22:44:40 -07:00
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,5 @@
FROM alpine:edge
RUN apk add --no-cache go git gcc bash abuild
RUN apk add --no-cache go yq git gcc bash abuild
RUN apk add --no-cache ko --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing
RUN apk add --no-cache --allow-untrusted apko --repository=https://packages.wolfi.dev/os
RUN wget -O /usr/bin/lure https://api.minio.elara.ws/adl/lure/lure-amd64 && chmod +x /usr/bin/lure

View File

@ -20,4 +20,5 @@ for arch in pkgs/*/; do
abuild-sign "$arch/APKINDEX.tar.gz"
done
apko publish --sbom=false apko.yaml gitea.elara.ws/elara6331/golang:latest
version_tag="gitea.elara.ws/elara6331/golang:$(lure info go-bin | yq -r .version | head -1)"
apko publish --sbom=false apko.yaml gitea.elara.ws/elara6331/golang:latest "$version_tag"