Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
e597367368 | |||
bda49f6a9b | |||
3b2f295be2 |
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -13,7 +13,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
GO_VERSION: 1.19
|
GO_VERSION: 1.19
|
||||||
GOLANGCI_LINT_VERSION: v1.49.0
|
GOLANGCI_LINT_VERSION: v1.50.0
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
@ -10,7 +10,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
GO_VERSION: 1.19
|
GO_VERSION: 1.19
|
||||||
SEIHON_VERSION: v0.9.0
|
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -39,14 +39,17 @@ docker_manifests:
|
|||||||
image_templates:
|
image_templates:
|
||||||
- 'traefik/whoami:{{ .Tag }}-amd64'
|
- 'traefik/whoami:{{ .Tag }}-amd64'
|
||||||
- 'traefik/whoami:{{ .Tag }}-arm64'
|
- 'traefik/whoami:{{ .Tag }}-arm64'
|
||||||
|
- 'traefik/whoami:{{ .Tag }}-armv7'
|
||||||
- name_template: 'traefik/whoami:latest'
|
- name_template: 'traefik/whoami:latest'
|
||||||
image_templates:
|
image_templates:
|
||||||
- 'traefik/whoami:{{ .Tag }}-amd64'
|
- 'traefik/whoami:{{ .Tag }}-amd64'
|
||||||
- 'traefik/whoami:{{ .Tag }}-arm64'
|
- 'traefik/whoami:{{ .Tag }}-arm64'
|
||||||
|
- 'traefik/whoami:{{ .Tag }}-armv7'
|
||||||
- name_template: 'traefik/whoami:v{{ .Major }}.{{ .Minor }}'
|
- name_template: 'traefik/whoami:v{{ .Major }}.{{ .Minor }}'
|
||||||
image_templates:
|
image_templates:
|
||||||
- 'traefik/whoami:v{{ .Major }}.{{ .Minor }}-amd64'
|
- 'traefik/whoami:v{{ .Major }}.{{ .Minor }}-amd64'
|
||||||
- 'traefik/whoami:v{{ .Major }}.{{ .Minor }}-arm64'
|
- 'traefik/whoami:v{{ .Major }}.{{ .Minor }}-arm64'
|
||||||
|
- 'traefik/whoami:v{{ .Major }}.{{ .Minor }}-armv7'
|
||||||
|
|
||||||
dockers:
|
dockers:
|
||||||
- use: buildx
|
- use: buildx
|
||||||
@ -84,3 +87,22 @@ dockers:
|
|||||||
- '--label=org.opencontainers.image.version={{.Version}}'
|
- '--label=org.opencontainers.image.version={{.Version}}'
|
||||||
- '--label=org.opencontainers.image.source={{.GitURL}}'
|
- '--label=org.opencontainers.image.source={{.GitURL}}'
|
||||||
- '--platform=linux/arm64'
|
- '--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
|
.PHONY: default check test build image
|
||||||
|
|
||||||
TAG_NAME := $(shell git tag -l --contains HEAD)
|
|
||||||
|
|
||||||
IMAGE_NAME := traefik/whoami
|
IMAGE_NAME := traefik/whoami
|
||||||
|
|
||||||
@ -17,6 +15,3 @@ check:
|
|||||||
|
|
||||||
image:
|
image:
|
||||||
docker build -t $(IMAGE_NAME) .
|
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