mirror of https://gitlab.com/gitlab-org/cli.git
build/goreleaser: docker images
This commit is contained in:
parent
14ed98c0a0
commit
bb22384c73
|
@ -30,6 +30,33 @@ builds:
|
||||||
goos: [windows]
|
goos: [windows]
|
||||||
goarch: [386, amd64]
|
goarch: [386, amd64]
|
||||||
|
|
||||||
|
dockers:
|
||||||
|
- image_templates:
|
||||||
|
- 'profclems/glab:{{ .Tag }}'
|
||||||
|
- 'ghcr.io/profclems/glab:{{ .Tag }}'
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
use_buildx: true
|
||||||
|
build_flag_templates:
|
||||||
|
- "--pull"
|
||||||
|
- "--label=org.opencontainers.image.created={{.Date}}"
|
||||||
|
- "--label=org.opencontainers.image.name={{.ProjectName}}"
|
||||||
|
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
|
||||||
|
- "--label=org.opencontainers.image.version={{.Version}}"
|
||||||
|
- "--label=org.opencontainers.image.source={{.GitURL}}"
|
||||||
|
- "--platform=linux/amd64"
|
||||||
|
extra_files:
|
||||||
|
- scripts/entrypoint.sh
|
||||||
|
docker_manifests:
|
||||||
|
- name_template: 'profclems/glab:{{ .Tag }}'
|
||||||
|
image_templates:
|
||||||
|
- 'profclems/glab:{{ .Tag }}'
|
||||||
|
- name_template: 'profclems/glab:latest'
|
||||||
|
image_templates:
|
||||||
|
- 'profclems/glab:{{ .Tag }}'
|
||||||
|
- name_template: 'ghcr.io/profclems/glab:latest'
|
||||||
|
image_templates:
|
||||||
|
- 'ghcr.io/profclems/glab:{{ .Tag }}'
|
||||||
|
|
||||||
archives:
|
archives:
|
||||||
- id: nix
|
- id: nix
|
||||||
builds: [macos, linux]
|
builds: [macos, linux]
|
||||||
|
@ -80,8 +107,9 @@ nfpms:
|
||||||
# Override default /usr/local/bin destination for binaries
|
# Override default /usr/local/bin destination for binaries
|
||||||
# Since glab is already archived in the bin directory it would install in /usr/bin/glab
|
# Since glab is already archived in the bin directory it would install in /usr/bin/glab
|
||||||
bindir: /usr
|
bindir: /usr
|
||||||
files:
|
contents:
|
||||||
"./share/man/man1/glab*.1": "/usr/share/man/man1"
|
- src: "./share/man/man1/glab*.1"
|
||||||
|
dst: "/usr/share/man/man1"
|
||||||
|
|
||||||
checksum:
|
checksum:
|
||||||
name_template: 'checksums.txt'
|
name_template: 'checksums.txt'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM golang:1.16-alpine
|
FROM alpine:latest
|
||||||
|
|
||||||
RUN apk add --no-cache bash \
|
RUN apk add --no-cache bash \
|
||||||
curl \
|
curl \
|
||||||
|
@ -14,5 +14,5 @@ CMD [ "-h" ]
|
||||||
COPY scripts/entrypoint.sh /entrypoint.sh
|
COPY scripts/entrypoint.sh /entrypoint.sh
|
||||||
RUN chmod +x /entrypoint.sh
|
RUN chmod +x /entrypoint.sh
|
||||||
|
|
||||||
COPY dist/glab_*.apk /tmp/
|
COPY glab_*.apk /tmp/
|
||||||
RUN apk add --allow-untrusted /tmp/glab_*.apk
|
RUN apk add --allow-untrusted /tmp/glab_*.apk
|
Loading…
Reference in New Issue