This repository was archived by the owner on Jul 18, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +4
-3
lines changed Expand file tree Collapse file tree 5 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1919 go-version : 1.19
2020
2121 - name : Build
22- run : go build -v
22+ run : go build -v ./cmd/docker-index
2323
2424 - name : Test
2525 run : go test -v ./...
Original file line number Diff line number Diff line change 66
77builds :
88 - binary : &binary docker-index
9+ main : ./cmd/docker-index
910 goos :
1011 - linux
1112 - darwin
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ RUN go mod download
1313COPY . ./
1414
1515# RUN go test
16- RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-w -s" -trimpath
16+ RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-w -s" -trimpath -o index-cli-plugin ./cmd/docker-index
1717
1818# runtime stage
1919FROM scratch
Original file line number Diff line number Diff line change 1010
1111 go:build :
1212 cmds :
13- - go build -o docker-index -ldflags="-w -s -X 'github.com/docker/index-cli-plugin/internal.version={{.GIT_COMMIT}}'"
13+ - go build -o docker-index -ldflags="-w -s -X 'github.com/docker/index-cli-plugin/internal.version={{.GIT_COMMIT}}'" ./cmd/docker-index
1414 env :
1515 CGO_ENABLED : 0
1616 vars :
File renamed without changes.
You can’t perform that action at this time.
0 commit comments