Skip to content

Commit

Permalink
Add ARM builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickdappollonio committed Sep 9, 2024
1 parent 6861c88 commit ad1e790
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 9 deletions.
40 changes: 36 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,55 @@ archives:
{{- 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"
snapshot:
name_template: "{{ incpatch .Version }}-next"
version_template: "{{ incpatch .Version }}-next"
dockers:
- image_templates:
- "ghcr.io/patrickdappollonio/docker-http-server:v{{ .RawVersion }}"
- "ghcr.io/patrickdappollonio/docker-http-server:v{{ .Major }}"
- "ghcr.io/patrickdappollonio/docker-http-server:latest"
- "ghcr.io/patrickdappollonio/docker-http-server:{{ .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 }}"
- image_templates:
- "ghcr.io/patrickdappollonio/docker-http-server:{{ .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 }}"
docker_manifests:
- name_template: "ghcr.io/patrickdappollonio/docker-http-server:v{{ .RawVersion }}"
image_templates:
- "ghcr.io/patrickdappollonio/docker-http-server:{{ .Tag }}-amd64"
- "ghcr.io/patrickdappollonio/docker-http-server:{{ .Tag }}-arm64"
- name_template: "ghcr.io/patrickdappollonio/docker-http-server:v{{ .Major }}"
image_templates:
- "ghcr.io/patrickdappollonio/docker-http-server:{{ .Tag }}-amd64"
- "ghcr.io/patrickdappollonio/docker-http-server:{{ .Tag }}-arm64"
- name_template: "ghcr.io/patrickdappollonio/docker-http-server:latest"
image_templates:
- "ghcr.io/patrickdappollonio/docker-http-server:{{ .Tag }}-amd64"
- "ghcr.io/patrickdappollonio/docker-http-server:{{ .Tag }}-arm64"
changelog:
sort: asc
filters:
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
module github.com/patrickdappollonio/http-server

go 1.21.3
go 1.23

require (
github.com/go-chi/chi/v5 v5.1.0
github.com/go-playground/validator/v10 v10.22.0
github.com/go-playground/validator/v10 v10.22.1
github.com/golang-jwt/jwt v3.2.2+incompatible
github.com/klauspost/compress v1.17.9
github.com/saintfish/chardet v0.0.0-20230101081208-5e3ef4b5456d
github.com/spf13/cobra v1.8.1
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.19.0
Expand All @@ -27,7 +28,6 @@ require (
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
github.com/sagikazarmark/locafero v0.4.0 // indirect
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
github.com/saintfish/chardet v0.0.0-20230101081208-5e3ef4b5456d // indirect
github.com/sourcegraph/conc v0.3.0 // indirect
github.com/spf13/afero v1.11.0 // indirect
github.com/spf13/cast v1.6.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/o
github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY=
github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJnYK9S473LQFuzCbDbfSFY=
github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY=
github.com/go-playground/validator/v10 v10.22.0 h1:k6HsTZ0sTnROkhS//R0O+55JgM8C4Bx7ia+JlgcnOao=
github.com/go-playground/validator/v10 v10.22.0/go.mod h1:dbuPbCMFw/DrkbEynArYaCwl3amGuJotoKCe95atGMM=
github.com/go-playground/validator/v10 v10.22.1 h1:40JcKH+bBNGFczGuoBYgX4I6m/i27HYW8P9FDk5PbgA=
github.com/go-playground/validator/v10 v10.22.1/go.mod h1:dbuPbCMFw/DrkbEynArYaCwl3amGuJotoKCe95atGMM=
github.com/gobwas/httphead v0.1.0 h1:exrUm0f4YX0L7EBwZHuCF4GDp8aJfVeBrlLQrs6NqWU=
github.com/gobwas/httphead v0.1.0/go.mod h1:O/RXo79gxV8G+RqlR/otEwx4Q36zl9rqC5u12GKvMCM=
github.com/gobwas/pool v0.2.1 h1:xfeeEhW7pwmX8nuLVlqbzVc7udMDrwetjEv+TZIz1og=
Expand Down

0 comments on commit ad1e790

Please sign in to comment.