Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
098845bccd | |||
0f526f05ab | |||
24b1d1e4be | |||
1c1ad7d0f9 |
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
@ -34,6 +34,9 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "${DOCKER_PASSWORD}" | docker login --username "${DOCKER_USERNAME}" --password-stdin
|
echo "${DOCKER_PASSWORD}" | docker login --username "${DOCKER_USERNAME}" --password-stdin
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v2
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
|
@ -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'
|
||||||
|
Reference in New Issue
Block a user