Skip to content

Commit

Permalink
Add ARM builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickdappollonio committed Jun 4, 2024
1 parent 55acb01 commit 0bedc36
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 10 deletions.
70 changes: 62 additions & 8 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,75 @@ builds:
- -trimpath
ldflags:
- -s -w -X main.version={{.Version}} -extldflags "-static"
mod_timestamp: "{{ .CommitTimestamp }}"
archives:
- replacements:
386: i386
amd64: x86_64
- name_template: >-
{{ .ProjectName }}_
{{- tolower .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}
{{- end }}
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-next"
dockers:
- image_templates:
- "ghcr.io/patrickdappollonio/wait-for:{{ .Tag }}"
- "ghcr.io/patrickdappollonio/wait-for:latest"
- "ghcr.io/patrickdappollonio/wait-for:{{ .Tag }}-amd64"
goos: linux
goarch: amd64
use: buildx
build_flag_templates:
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.title={{ .ProjectName }}"
- "--label=org.opencontainers.image.description={{ .ProjectName }} version {{ .Version }}. See release notes at https://github.com/patrickdappollonio/{{ .ProjectName }}/releases/tag/v{{ .RawVersion }}"
- "--label=org.opencontainers.image.url=https://github.com/patrickdappollonio/{{ .ProjectName }}"
- "--label=org.opencontainers.image.source=https://github.com/patrickdappollonio/{{ .ProjectName }}"
- "--label=org.opencontainers.image.version={{ .Version }}"
- '--label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}'
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
skip_push: true
- image_templates:
- "ghcr.io/patrickdappollonio/wait-for:{{ .Tag }}-arm64"
goos: linux
goarch: arm64
use: buildx
build_flag_templates:
- "--platform=linux/arm64"
- "--label=org.opencontainers.image.title={{ .ProjectName }}"
- "--label=org.opencontainers.image.description={{ .ProjectName }} version {{ .Version }}. See release notes at https://github.com/patrickdappollonio/{{ .ProjectName }}/releases/tag/v{{ .RawVersion }}"
- "--label=org.opencontainers.image.url=https://github.com/patrickdappollonio/{{ .ProjectName }}"
- "--label=org.opencontainers.image.source=https://github.com/patrickdappollonio/{{ .ProjectName }}"
- "--label=org.opencontainers.image.version={{ .Version }}"
- '--label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}'
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
skip_push: true
docker_manifests:
- name_template: "ghcr.io/patrickdappollonio/wait-for:v{{ .RawVersion }}"
image_templates:
- "ghcr.io/patrickdappollonio/wait-for:{{ .Tag }}-amd64"
- "ghcr.io/patrickdappollonio/wait-for:{{ .Tag }}-arm64"
- name_template: "ghcr.io/patrickdappollonio/wait-for:v{{ .Major }}"
image_templates:
- "ghcr.io/patrickdappollonio/wait-for:{{ .Tag }}-amd64"
- "ghcr.io/patrickdappollonio/wait-for:{{ .Tag }}-arm64"
- name_template: "ghcr.io/patrickdappollonio/wait-for:latest"
image_templates:
- "ghcr.io/patrickdappollonio/wait-for:{{ .Tag }}-amd64"
- "ghcr.io/patrickdappollonio/wait-for:{{ .Tag }}-arm64"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- "^docs:"
- "^test:"
groups:
- title: "Fixes, improvements and updates"
order: 1
- title: "Dependency updates"
regexp: "^Bump .* from .* to .*$" # dependabot
order: 999
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ spec:
image: ghcr.io/patrickdappollonio/wait-for:latest
env:
- name: POSTGRES_HOST
value: "postgres.default.svc.cluster.local:5432"
value: "postgres.default.svc.cluster.local:5432"
command:
- /wait-for
- /wait-for
args:
- --host="google.com:443"
- --host="mysql.example.com:3306"
Expand Down

0 comments on commit 0bedc36

Please sign in to comment.