Skip to content

Commit 1731484

Browse files
authored
Adds Manifest for Parrot Goreleaser (#1602)
1 parent faa5f35 commit 1731484

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

parrot/.goreleaser.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ dockers:
3131
goos: linux
3232
goarch: amd64
3333
image_templates:
34-
- '{{ .Env.IMG_PRE }}/parrot:{{ .Tag }}'
35-
- '{{ .Env.IMG_PRE }}/parrot:latest'
34+
- '{{ .Env.IMG_PRE }}/parrot:{{ .Tag }}-amd64'
3635
build_flag_templates:
3736
- --platform=linux/amd64
3837
- --pull
@@ -45,7 +44,6 @@ dockers:
4544
goarch: arm64
4645
image_templates:
4746
- '{{ .Env.IMG_PRE }}/parrot:{{ .Tag }}-arm64'
48-
- '{{ .Env.IMG_PRE }}/parrot:latest-arm64'
4947
build_flag_templates:
5048
- --platform=linux/arm64
5149
- --pull
@@ -54,6 +52,12 @@ dockers:
5452
- --label=org.opencontainers.image.revision={{.FullCommit}}
5553
- --label=org.opencontainers.image.version={{.Version}}
5654

55+
docker_manifests:
56+
- name_template: '{{ .Env.IMG_PRE }}/parrot:{{ .Tag }}'
57+
image_templates:
58+
- '{{ .Env.IMG_PRE }}/parrot:{{ .Tag }}-amd64'
59+
- '{{ .Env.IMG_PRE }}/parrot:{{ .Tag }}-arm64'
60+
5761
before:
5862
hooks:
59-
- cd parrot && go mod tidy
63+
- sh -c "cd parrot && go mod tidy"

parrot/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
FROM scratch
2-
COPY parrotserver /parrotserver
3-
ENTRYPOINT [ "parrotserver", "-port", "9090", "-t" ]
2+
COPY parrot /parrot
3+
ENTRYPOINT [ "parrot", "-port", "9090", "-t" ]

parrot/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ build:
3434

3535
.PHONY: goreleaser
3636
goreleaser:
37-
cd .. && goreleaser build --snapshot --clean -f ./parrot/.goreleaser.yaml
37+
cd .. && goreleaser release --snapshot --clean -f ./parrot/.goreleaser.yaml

0 commit comments

Comments
 (0)