Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
e597367368 | |||
bda49f6a9b | |||
3b2f295be2 | |||
098845bccd | |||
0f526f05ab | |||
24b1d1e4be | |||
1c1ad7d0f9 |
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -13,7 +13,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GO_VERSION: 1.19
|
||||
GOLANGCI_LINT_VERSION: v1.49.0
|
||||
GOLANGCI_LINT_VERSION: v1.50.0
|
||||
CGO_ENABLED: 0
|
||||
|
||||
steps:
|
||||
|
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@ -10,7 +10,6 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GO_VERSION: 1.19
|
||||
SEIHON_VERSION: v0.9.0
|
||||
CGO_ENABLED: 0
|
||||
|
||||
steps:
|
||||
@ -34,6 +33,9 @@ jobs:
|
||||
run: |
|
||||
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
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
|
@ -6,22 +6,13 @@ builds:
|
||||
- windows
|
||||
- darwin
|
||||
- linux
|
||||
- freebsd
|
||||
- openbsd
|
||||
goarch:
|
||||
- amd64
|
||||
- '386'
|
||||
- arm
|
||||
- arm64
|
||||
goarm:
|
||||
- '7'
|
||||
|
||||
ignore:
|
||||
- goos: darwin
|
||||
goarch: '386'
|
||||
- goos: openbsd
|
||||
goarch: arm
|
||||
|
||||
changelog:
|
||||
sort: asc
|
||||
filters:
|
||||
@ -43,36 +34,75 @@ archives:
|
||||
files:
|
||||
- LICENSE
|
||||
|
||||
docker_manifests:
|
||||
- name_template: 'traefik/whoami:{{ .Tag }}'
|
||||
image_templates:
|
||||
- 'traefik/whoami:{{ .Tag }}-amd64'
|
||||
- 'traefik/whoami:{{ .Tag }}-arm64'
|
||||
- 'traefik/whoami:{{ .Tag }}-armv7'
|
||||
- name_template: 'traefik/whoami:latest'
|
||||
image_templates:
|
||||
- 'traefik/whoami:{{ .Tag }}-amd64'
|
||||
- 'traefik/whoami:{{ .Tag }}-arm64'
|
||||
- 'traefik/whoami:{{ .Tag }}-armv7'
|
||||
- name_template: 'traefik/whoami:v{{ .Major }}.{{ .Minor }}'
|
||||
image_templates:
|
||||
- 'traefik/whoami:v{{ .Major }}.{{ .Minor }}-amd64'
|
||||
- 'traefik/whoami:v{{ .Major }}.{{ .Minor }}-arm64'
|
||||
- 'traefik/whoami:v{{ .Major }}.{{ .Minor }}-armv7'
|
||||
|
||||
dockers:
|
||||
- use: buildx
|
||||
goos: linux
|
||||
goarch: amd64
|
||||
dockerfile: buildx.Dockerfile
|
||||
image_templates:
|
||||
- 'traefik/whoami:dev-amd64'
|
||||
- 'traefik/whoami:latest-amd64'
|
||||
- 'traefik/whoami:{{ .Tag }}-amd64'
|
||||
- 'traefik/whoami:v{{ .Major }}.{{ .Minor }}-amd64'
|
||||
build_flag_templates:
|
||||
- '--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.title={{.ProjectName}}'
|
||||
- '--label=org.opencontainers.image.revision={{.FullCommit}}'
|
||||
- '--label=org.opencontainers.image.version={{.Version}}'
|
||||
- '--label=org.opencontainers.image.source={{.GitURL}}'
|
||||
- '--platform=linux/amd64'
|
||||
|
||||
- use: buildx
|
||||
goos: linux
|
||||
goarch: arm64
|
||||
dockerfile: buildx.Dockerfile
|
||||
image_templates:
|
||||
- 'traefik/whoami:dev-arm64'
|
||||
- 'traefik/whoami:latest-arm64'
|
||||
- 'traefik/whoami:{{ .Tag }}-arm64'
|
||||
- 'traefik/whoami:v{{ .Major }}.{{ .Minor }}-arm64'
|
||||
build_flag_templates:
|
||||
- '--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.title={{.ProjectName}}'
|
||||
- '--label=org.opencontainers.image.revision={{.FullCommit}}'
|
||||
- '--label=org.opencontainers.image.version={{.Version}}'
|
||||
- '--label=org.opencontainers.image.source={{.GitURL}}'
|
||||
- '--platform=linux/arm64'
|
||||
|
||||
- use: buildx
|
||||
goos: linux
|
||||
goarch: arm
|
||||
goarm: '7'
|
||||
dockerfile: buildx.Dockerfile
|
||||
image_templates:
|
||||
- 'traefik/whoami:latest-armv7'
|
||||
- 'traefik/whoami:{{ .Tag }}-armv7'
|
||||
- 'traefik/whoami:v{{ .Major }}.{{ .Minor }}-armv7'
|
||||
build_flag_templates:
|
||||
- '--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.title={{.ProjectName}}'
|
||||
- '--label=org.opencontainers.image.revision={{.FullCommit}}'
|
||||
- '--label=org.opencontainers.image.version={{.Version}}'
|
||||
- '--label=org.opencontainers.image.source={{.GitURL}}'
|
||||
- '--platform=linux/arm/v7'
|
||||
|
7
Makefile
7
Makefile
@ -1,6 +1,4 @@
|
||||
.PHONY: default check test build image publish-images
|
||||
|
||||
TAG_NAME := $(shell git tag -l --contains HEAD)
|
||||
.PHONY: default check test build image
|
||||
|
||||
IMAGE_NAME := traefik/whoami
|
||||
|
||||
@ -17,6 +15,3 @@ check:
|
||||
|
||||
image:
|
||||
docker build -t $(IMAGE_NAME) .
|
||||
|
||||
publish-images:
|
||||
seihon publish -v "$(TAG_NAME)" -v "latest" --image-name $(IMAGE_NAME) --dry-run=false
|
||||
|
Reference in New Issue
Block a user