This repository was archived by the owner on Oct 3, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +44
-7
lines changed Expand file tree Collapse file tree 5 files changed +44
-7
lines changed Original file line number Diff line number Diff line change 23
23
24
24
- name : Build binary
25
25
run : |
26
- make docker-setup
26
+ make bin/ docker-setup
Original file line number Diff line number Diff line change @@ -68,11 +68,11 @@ jobs:
68
68
69
69
- name : Build binary
70
70
run : |
71
- make docker-setup
71
+ make bin/ docker-setup
72
72
73
73
- name : Create checksum
74
74
run : |
75
- sha256sum docker-setup >docker-setup.sha256
75
+ sha256sum bin/ docker-setup >bin/ docker-setup.sha256
76
76
77
77
- name : Create changelog
78
78
env :
@@ -116,4 +116,4 @@ jobs:
116
116
bodyFile : body.txt
117
117
prerelease : ${{ needs.prepare.outputs.prerelease }}
118
118
replacesArtifacts : true
119
- artifacts : " docker-setup,docker-setup.sha256"
119
+ artifacts : " bin/ docker-setup,bin/ docker-setup.sha256"
Original file line number Diff line number Diff line change @@ -5,9 +5,14 @@ GO_VERSION = $(shell git describe --tags --abbrev=0)
5
5
go-info :
6
6
@echo " GO_VERSION: $( GO_VERSION) "
7
7
8
- docker-setup : make/go.mk $(GO_SOURCES ) ; $(info $(M ) Building docker-setup version $(GO_VERSION ) ...)
9
- @CGO_ENABLED=0 \
10
- go build -buildvcs=false -ldflags " -X main.version=$( GO_VERSION) " -o docker-setup ./cmd/docker-setup
8
+ bin/docker-setup : bin/docker-setup-linux-$(ALT_ARCH )
9
+
10
+ bin/docker-setup-linux-$(ALT_ARCH ) :bin/docker-setup-linux-% : make/go.mk $(GO_SOURCES ) ; $(info $(M ) Building docker-setup version $(GO_VERSION ) for $(ALT_ARCH ) ...)
11
+ @\
12
+ CGO_ENABLED=0 \
13
+ GOOS=linux \
14
+ GOARCH=$* \
15
+ go build -buildvcs=false -ldflags " -w -s -X main.version=$( GO_VERSION) " -o bin/docker-setup-$$ {GOOS}-$$ {GOARCH} ./cmd/docker-setup
11
16
12
17
.PHONY :
13
18
go-deps :
Original file line number Diff line number Diff line change
1
+ #syntax=docker/dockerfile:1.5.2
2
+
3
+ ARG ref=main
4
+
5
+ FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
6
+ ARG name
7
+ ARG version
8
+ RUN <<EOF
9
+ curl --silent --location --fail --output "${prefix}${target}/bin/docker-setup" \
10
+ "https://github.com/nicholasdille/docker-setup/releases/download/v${version}/docker-setup"
11
+ chmod +x "${prefix}${target}/bin/docker-setup"
12
+
13
+ "${prefix}${target}/bin/docker-setup" completion bash >"${prefix}${target}/share/bash-completion/completions/docker-setup"
14
+ "${prefix}${target}/bin/docker-setup" completion fish >"${prefix}${target}/share/fish/vendor_completions.d/docker-setup.fish"
15
+ "${prefix}${target}/bin/docker-setup" completion zsh >"${prefix}${target}/share/zsh/vendor-completions/_docker-setup"
16
+ EOF
Original file line number Diff line number Diff line change
1
+ name : docker-setup
2
+ version : " 2.2.11"
3
+ check : " "
4
+ platforms :
5
+ - linux/amd64
6
+ # - linux/arm64
7
+ tags :
8
+ - category/operations
9
+ - lang/go
10
+ - type/cli
11
+ homepage : https://github.com/nicholasdille/docker-setup
12
+ description : Install, configure and update container tools
13
+ renovate :
14
+ datasource : github-releases
15
+ package : nicholasdille/docker-setup
16
+ extractVersion : ^v(?<version>.+?)$
You can’t perform that action at this time.
0 commit comments