mirror of
https://github.com/ribbybibby/ssl_exporter.git
synced 2024-11-27 08:31:02 +02:00
Build multi-arch docker images
This commit is contained in:
parent
d38244bc39
commit
8e318931c5
3
.github/workflows/release.yaml
vendored
3
.github/workflows/release.yaml
vendored
@ -14,6 +14,9 @@ jobs:
|
|||||||
- name: Unshallow
|
- name: Unshallow
|
||||||
run: git fetch --prune --unshallow
|
run: git fetch --prune --unshallow
|
||||||
|
|
||||||
|
- name: Set up Qemu
|
||||||
|
uses: docker/setup-qemu-action@v1
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v1
|
uses: actions/setup-go@v1
|
||||||
with:
|
with:
|
||||||
|
3
.github/workflows/test-and-snapshot.yaml
vendored
3
.github/workflows/test-and-snapshot.yaml
vendored
@ -21,6 +21,9 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: Set up Qemu
|
||||||
|
uses: docker/setup-qemu-action@v1
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v1
|
uses: actions/setup-go@v1
|
||||||
with:
|
with:
|
||||||
|
@ -8,8 +8,8 @@ builds:
|
|||||||
- darwin
|
- darwin
|
||||||
- windows
|
- windows
|
||||||
goarch:
|
goarch:
|
||||||
|
- "386"
|
||||||
- amd64
|
- amd64
|
||||||
- '386'
|
|
||||||
- arm
|
- arm
|
||||||
- arm64
|
- arm64
|
||||||
- mips64le
|
- mips64le
|
||||||
@ -26,14 +26,37 @@ release:
|
|||||||
owner: ribbybibby
|
owner: ribbybibby
|
||||||
name: ssl_exporter
|
name: ssl_exporter
|
||||||
dockers:
|
dockers:
|
||||||
- image_templates:
|
- image_templates:
|
||||||
- '{{.Env.APP_DOCKER_IMAGE_NAME}}:{{.Version}}'
|
- "{{.Env.APP_DOCKER_IMAGE_NAME}}:{{.Version}}-amd64"
|
||||||
- '{{.Env.APP_DOCKER_IMAGE_NAME}}:latest'
|
dockerfile: Dockerfile
|
||||||
dockerfile: Dockerfile
|
use: buildx
|
||||||
build_flag_templates:
|
build_flag_templates:
|
||||||
- "--pull"
|
- "--pull"
|
||||||
- "--label=org.opencontainers.image.created={{.Date}}"
|
- "--label=org.opencontainers.image.created={{.Date}}"
|
||||||
- "--label=org.opencontainers.image.name={{.ProjectName}}"
|
- "--label=org.opencontainers.image.name={{.ProjectName}}"
|
||||||
- "--label=org.opencontainers.image.revision={{.Commit}}"
|
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
|
||||||
- "--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/amd64"
|
||||||
|
- image_templates:
|
||||||
|
- "{{.Env.APP_DOCKER_IMAGE_NAME}}:{{.Version}}-arm64"
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
use: buildx
|
||||||
|
build_flag_templates:
|
||||||
|
- "--pull"
|
||||||
|
- "--label=org.opencontainers.image.created={{.Date}}"
|
||||||
|
- "--label=org.opencontainers.image.name={{.ProjectName}}"
|
||||||
|
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
|
||||||
|
- "--label=org.opencontainers.image.version={{.Version}}"
|
||||||
|
- "--label=org.opencontainers.image.source={{.GitURL}}"
|
||||||
|
- "--platform=linux/arm64"
|
||||||
|
goarch: arm64
|
||||||
|
docker_manifests:
|
||||||
|
- name_template: "{{.Env.APP_DOCKER_IMAGE_NAME}}:{{.Version}}"
|
||||||
|
image_templates:
|
||||||
|
- "{{.Env.APP_DOCKER_IMAGE_NAME}}:{{.Version}}-amd64"
|
||||||
|
- "{{.Env.APP_DOCKER_IMAGE_NAME}}:{{.Version}}-arm64"
|
||||||
|
- name_template: "{{.Env.APP_DOCKER_IMAGE_NAME}}:latest"
|
||||||
|
image_templates:
|
||||||
|
- "{{.Env.APP_DOCKER_IMAGE_NAME}}:{{.Version}}-amd64"
|
||||||
|
- "{{.Env.APP_DOCKER_IMAGE_NAME}}:{{.Version}}-arm64"
|
||||||
|
Loading…
Reference in New Issue
Block a user