mirror of
https://github.com/containrrr/watchtower.git
synced 2024-12-12 09:04:17 +02:00
chore(ci): set image platform on image build (#811)
Co-authored-by: Simon Aronsson <simme@arcticbit.se>
This commit is contained in:
parent
a068203e4d
commit
d0943c3b77
2
.github/workflows/pull-request.yml
vendored
2
.github/workflows/pull-request.yml
vendored
@ -69,5 +69,5 @@ jobs:
|
||||
- name: Build
|
||||
uses: goreleaser/goreleaser-action@v2
|
||||
with:
|
||||
version: v0.104.1
|
||||
version: v0.155.0
|
||||
args: --snapshot --skip-publish --debug
|
||||
|
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@ -70,10 +70,10 @@ jobs:
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.15.x
|
||||
- name: Run goreleaser
|
||||
- name: Build
|
||||
uses: goreleaser/goreleaser-action@v2
|
||||
with:
|
||||
version: v0.104.1
|
||||
version: v0.155.0
|
||||
args: --debug
|
||||
- name: Enable experimental docker features
|
||||
run: |
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM alpine:3.11 as alpine
|
||||
FROM --platform=$BUILDPLATFORM alpine:3.11 as alpine
|
||||
|
||||
RUN apk add --no-cache \
|
||||
ca-certificates \
|
||||
|
@ -9,7 +9,8 @@ build:
|
||||
- 386
|
||||
- arm
|
||||
- arm64
|
||||
archive:
|
||||
archives:
|
||||
-
|
||||
name_template: "{{.ProjectName}}_{{.Os}}_{{.Arch}}"
|
||||
format: tar.gz
|
||||
replacements:
|
||||
@ -26,6 +27,8 @@ archive:
|
||||
- LICENSE.md
|
||||
dockers:
|
||||
-
|
||||
use_buildx: true
|
||||
build_flag_templates: [ "--platform=linux/amd64" ]
|
||||
goos: linux
|
||||
goarch: amd64
|
||||
goarm: ''
|
||||
@ -36,6 +39,8 @@ dockers:
|
||||
binaries:
|
||||
- watchtower
|
||||
-
|
||||
use_buildx: true
|
||||
build_flag_templates: [ "--platform=linux/386" ]
|
||||
goos: linux
|
||||
goarch: 386
|
||||
goarm: ''
|
||||
@ -46,6 +51,8 @@ dockers:
|
||||
binaries:
|
||||
- watchtower
|
||||
-
|
||||
use_buildx: true
|
||||
build_flag_templates: [ "--platform=linux/arm/v6" ]
|
||||
goos: linux
|
||||
goarch: arm
|
||||
goarm: 6
|
||||
@ -56,6 +63,8 @@ dockers:
|
||||
binaries:
|
||||
- watchtower
|
||||
-
|
||||
use_buildx: true
|
||||
build_flag_templates: [ "--platform=linux/arm64/v8" ]
|
||||
goos: linux
|
||||
goarch: arm64
|
||||
goarm: ''
|
||||
|
Loading…
Reference in New Issue
Block a user