Skip to content

Commit

Permalink
Adds Manifest for Parrot Goreleaser (#1602)
Browse files Browse the repository at this point in the history
  • Loading branch information
kalverra authored Jan 24, 2025
1 parent faa5f35 commit 1731484
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
12 changes: 8 additions & 4 deletions parrot/.goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ dockers:
goos: linux
goarch: amd64
image_templates:
- '{{ .Env.IMG_PRE }}/parrot:{{ .Tag }}'
- '{{ .Env.IMG_PRE }}/parrot:latest'
- '{{ .Env.IMG_PRE }}/parrot:{{ .Tag }}-amd64'
build_flag_templates:
- --platform=linux/amd64
- --pull
Expand All @@ -45,7 +44,6 @@ dockers:
goarch: arm64
image_templates:
- '{{ .Env.IMG_PRE }}/parrot:{{ .Tag }}-arm64'
- '{{ .Env.IMG_PRE }}/parrot:latest-arm64'
build_flag_templates:
- --platform=linux/arm64
- --pull
Expand All @@ -54,6 +52,12 @@ dockers:
- --label=org.opencontainers.image.revision={{.FullCommit}}
- --label=org.opencontainers.image.version={{.Version}}

docker_manifests:
- name_template: '{{ .Env.IMG_PRE }}/parrot:{{ .Tag }}'
image_templates:
- '{{ .Env.IMG_PRE }}/parrot:{{ .Tag }}-amd64'
- '{{ .Env.IMG_PRE }}/parrot:{{ .Tag }}-arm64'

before:
hooks:
- cd parrot && go mod tidy
- sh -c "cd parrot && go mod tidy"
4 changes: 2 additions & 2 deletions parrot/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM scratch
COPY parrotserver /parrotserver
ENTRYPOINT [ "parrotserver", "-port", "9090", "-t" ]
COPY parrot /parrot
ENTRYPOINT [ "parrot", "-port", "9090", "-t" ]
2 changes: 1 addition & 1 deletion parrot/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ build:

.PHONY: goreleaser
goreleaser:
cd .. && goreleaser build --snapshot --clean -f ./parrot/.goreleaser.yaml
cd .. && goreleaser release --snapshot --clean -f ./parrot/.goreleaser.yaml

0 comments on commit 1731484

Please sign in to comment.