3 Commits

Author SHA1 Message Date
0f526f05ab chore: enforce platform 2022-09-10 17:00:19 +02:00
24b1d1e4be chore: add missing manifest 2022-09-10 16:48:40 +02:00
1c1ad7d0f9 chore: keep it simple 2022-09-10 16:39:39 +02:00

View File

@ -6,22 +6,13 @@ builds:
- windows - windows
- darwin - darwin
- linux - linux
- freebsd
- openbsd
goarch: goarch:
- amd64 - amd64
- '386'
- arm - arm
- arm64 - arm64
goarm: goarm:
- '7' - '7'
ignore:
- goos: darwin
goarch: '386'
- goos: openbsd
goarch: arm
changelog: changelog:
sort: asc sort: asc
filters: filters:
@ -43,36 +34,53 @@ archives:
files: files:
- LICENSE - LICENSE
docker_manifests:
- name_template: 'traefik/whoami:{{ .Tag }}'
image_templates:
- 'traefik/whoami:{{ .Tag }}-amd64'
- 'traefik/whoami:{{ .Tag }}-arm64'
- name_template: 'traefik/whoami:latest'
image_templates:
- 'traefik/whoami:{{ .Tag }}-amd64'
- 'traefik/whoami:{{ .Tag }}-arm64'
- name_template: 'traefik/whoami:v{{ .Major }}.{{ .Minor }}'
image_templates:
- 'traefik/whoami:v{{ .Major }}.{{ .Minor }}-amd64'
- 'traefik/whoami:v{{ .Major }}.{{ .Minor }}-arm64'
dockers: dockers:
- use: buildx - use: buildx
goos: linux goos: linux
goarch: amd64 goarch: amd64
dockerfile: buildx.Dockerfile dockerfile: buildx.Dockerfile
image_templates: image_templates:
- 'traefik/whoami:dev-amd64'
- 'traefik/whoami:latest-amd64' - 'traefik/whoami:latest-amd64'
- 'traefik/whoami:{{ .Tag }}-amd64' - 'traefik/whoami:{{ .Tag }}-amd64'
- 'traefik/whoami:v{{ .Major }}.{{ .Minor }}-amd64' - 'traefik/whoami:v{{ .Major }}.{{ .Minor }}-amd64'
build_flag_templates: build_flag_templates:
- '--pull' - '--pull'
- '--label=org.opencontainers.image.description=Tiny Go webserver that prints OS information and HTTP request to output'
- '--label=org.opencontainers.image.created={{.Date}}' - '--label=org.opencontainers.image.created={{.Date}}'
- '--label=org.opencontainers.image.title={{.ProjectName}}' - '--label=org.opencontainers.image.title={{.ProjectName}}'
- '--label=org.opencontainers.image.revision={{.FullCommit}}' - '--label=org.opencontainers.image.revision={{.FullCommit}}'
- '--label=org.opencontainers.image.version={{.Version}}' - '--label=org.opencontainers.image.version={{.Version}}'
- '--label=org.opencontainers.image.source={{.GitURL}}'
- '--platform=linux/amd64'
- use: buildx - use: buildx
goos: linux goos: linux
goarch: arm64 goarch: arm64
dockerfile: buildx.Dockerfile dockerfile: buildx.Dockerfile
image_templates: image_templates:
- 'traefik/whoami:dev-arm64'
- 'traefik/whoami:latest-arm64' - 'traefik/whoami:latest-arm64'
- 'traefik/whoami:{{ .Tag }}-arm64' - 'traefik/whoami:{{ .Tag }}-arm64'
- 'traefik/whoami:v{{ .Major }}.{{ .Minor }}-arm64' - 'traefik/whoami:v{{ .Major }}.{{ .Minor }}-arm64'
build_flag_templates: build_flag_templates:
- '--pull' - '--pull'
- '--label=org.opencontainers.image.description=Tiny Go webserver that prints OS information and HTTP request to output'
- '--label=org.opencontainers.image.created={{.Date}}' - '--label=org.opencontainers.image.created={{.Date}}'
- '--label=org.opencontainers.image.title={{.ProjectName}}' - '--label=org.opencontainers.image.title={{.ProjectName}}'
- '--label=org.opencontainers.image.revision={{.FullCommit}}' - '--label=org.opencontainers.image.revision={{.FullCommit}}'
- '--label=org.opencontainers.image.version={{.Version}}' - '--label=org.opencontainers.image.version={{.Version}}'
- '--label=org.opencontainers.image.source={{.GitURL}}'
- '--platform=linux/arm64'