Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds Manifest for Parrot Goreleaser #1602

Merged
merged 1 commit into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading