From 61ef50a0b01149c1ed19bebd5423c7b50fe59993 Mon Sep 17 00:00:00 2001 From: Christoph Petrausch Date: Wed, 3 Feb 2021 09:32:10 +0100 Subject: [PATCH 1/8] Test multi arch build --- .github/workflows/release.yml | 4 +++ .github/workflows/release_test.yml | 32 ++++++++++++++++++++++++ .goreleaser.yml | 39 ++++++++++++++++++++++++++++-- 3 files changed, 73 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/release_test.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bb88c25..8cf5751 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,6 +21,10 @@ jobs: run: go test -cover ./... - name: Vet run: go vet ./... + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 # Login to the registries - name: Login to Github Packages run: echo ${{ secrets.GITHUB_TOKEN }} | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin diff --git a/.github/workflows/release_test.yml b/.github/workflows/release_test.yml new file mode 100644 index 0000000..aaafc63 --- /dev/null +++ b/.github/workflows/release_test.yml @@ -0,0 +1,32 @@ +name: release + +on: + push: + branches: ["master"] + pull_request: + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Unshallow + run: git fetch --prune --unshallow + - name: Set up Go + uses: actions/setup-go@v1 + with: + go-version: 1.15.x + - name: Test + run: go test -cover ./... + - name: Vet + run: go vet ./... + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v1 + with: + version: latest + args: release --rm-dist --skip-publish \ No newline at end of file diff --git a/.goreleaser.yml b/.goreleaser.yml index 4b6e717..aa63aac 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -64,9 +64,44 @@ changelog: dockers: - dockerfile: release/Dockerfile.scratch image_templates: - - "hikhvar/mqtt2prometheus:{{ .Tag }}" - "hikhvar/mqtt2prometheus:latest" - "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:{{ .Tag }}" - "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:latest" - "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}" - - "ghcr.io/hikhvar/mqtt2prometheus:latest" \ No newline at end of file + - "ghcr.io/hikhvar/mqtt2prometheus:latest" + + - dockerfile: release/Dockerfile.scratch + goos: linux + goarch: amd64 + image_templates: + - "hikhvar/mqtt2prometheus:{{ .Tag }}-amd64" + - "hikhvar/mqtt2prometheus:latest}-amd64" + - "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:{{ .Tag }}}-amd64" + - "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:latest}-amd64" + - "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}}-amd64" + - "ghcr.io/hikhvar/mqtt2prometheus:latest}-amd64" + + - dockerfile: release/Dockerfile.scratch + goos: linux + goarch: arm64 + image_templates: + - "hikhvar/mqtt2prometheus:{{ .Tag }}-arm64" + - "hikhvar/mqtt2prometheus:latest}-arm64" + - "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:{{ .Tag }}}-arm64" + - "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:latest}-arm64" + - "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}}-arm64" + - "ghcr.io/hikhvar/mqtt2prometheus:latest}-arm64" + +# .goreleaser.yml +docker_manifests: + # You can have multiple Docker manifests. + - + # Name template for the manifest. + # Defaults to empty. + name_template: hikhvar/mqtt2prometheus:{{ .Tag }} + + # Image name templates to be added to this manifest. + # Defaults to empty. + image_templates: + - "hikhvar/mqtt2prometheus:{{ .Tag }}-amd64" + - "hikhvar/mqtt2prometheus:{{ .Tag }}-arm64" \ No newline at end of file From 6c71dcf45c2c8d6592675ecdd947f2080a85ea8d Mon Sep 17 00:00:00 2001 From: Christoph Petrausch Date: Wed, 3 Feb 2021 09:37:41 +0100 Subject: [PATCH 2/8] Fix arm64 image tags --- .goreleaser.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index aa63aac..1d32230 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -87,10 +87,10 @@ dockers: image_templates: - "hikhvar/mqtt2prometheus:{{ .Tag }}-arm64" - "hikhvar/mqtt2prometheus:latest}-arm64" - - "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:{{ .Tag }}}-arm64" - - "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:latest}-arm64" - - "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}}-arm64" - - "ghcr.io/hikhvar/mqtt2prometheus:latest}-arm64" + - "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:{{ .Tag }}-arm64" + - "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:latest-arm64" + - "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}-arm64" + - "ghcr.io/hikhvar/mqtt2prometheus:latest-arm64" # .goreleaser.yml docker_manifests: From 78da1d1dd77157ffbe10296442a274bfa4746f82 Mon Sep 17 00:00:00 2001 From: Christoph Petrausch Date: Wed, 3 Feb 2021 09:45:07 +0100 Subject: [PATCH 3/8] Fix tagging, use arm5 aswell --- .goreleaser.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 1d32230..8695345 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -28,6 +28,7 @@ builds: - amd64 - arm - arm64 + - 386 # GOARM to build for when GOARCH is arm. # For more info refer to: https://golang.org/doc/install/source#environment @@ -86,12 +87,24 @@ dockers: goarch: arm64 image_templates: - "hikhvar/mqtt2prometheus:{{ .Tag }}-arm64" - - "hikhvar/mqtt2prometheus:latest}-arm64" + - "hikhvar/mqtt2prometheus:latest-arm64" - "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:{{ .Tag }}-arm64" - "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:latest-arm64" - "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}-arm64" - "ghcr.io/hikhvar/mqtt2prometheus:latest-arm64" + - dockerfile: release/Dockerfile.scratch + goos: linux + goarch: arm + goarm: 5 + image_templates: + - "hikhvar/mqtt2prometheus:{{ .Tag }}-arm5" + - "hikhvar/mqtt2prometheus:latest-arm5" + - "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:{{ .Tag }}-arm5" + - "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:latest-arm5" + - "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}-arm5" + - "ghcr.io/hikhvar/mqtt2prometheus:latest-arm5" + # .goreleaser.yml docker_manifests: # You can have multiple Docker manifests. @@ -104,4 +117,5 @@ docker_manifests: # Defaults to empty. image_templates: - "hikhvar/mqtt2prometheus:{{ .Tag }}-amd64" - - "hikhvar/mqtt2prometheus:{{ .Tag }}-arm64" \ No newline at end of file + - "hikhvar/mqtt2prometheus:{{ .Tag }}-arm64" + - "hikhvar/mqtt2prometheus:{{ .Tag }}-arm5" \ No newline at end of file From 1eae3e5534039989236f28a7b99bc2941480c208 Mon Sep 17 00:00:00 2001 From: Christoph Petrausch Date: Wed, 3 Feb 2021 09:51:57 +0100 Subject: [PATCH 4/8] Final fix --- .goreleaser.yml | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 8695345..fee45a3 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -63,24 +63,26 @@ changelog: - '^test:' dockers: - - dockerfile: release/Dockerfile.scratch - image_templates: - - "hikhvar/mqtt2prometheus:latest" - - "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:{{ .Tag }}" - - "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:latest" - - "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}" - - "ghcr.io/hikhvar/mqtt2prometheus:latest" + # TODO: Create Manifests for this + # TODO: Add arm6, arm7 and i386 + # - dockerfile: release/Dockerfile.scratch + # image_templates: + # - "hikhvar/mqtt2prometheus:latest" + # - "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:{{ .Tag }}" + # - "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:latest" + # - "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}" + # - "ghcr.io/hikhvar/mqtt2prometheus:latest" - dockerfile: release/Dockerfile.scratch goos: linux goarch: amd64 image_templates: - "hikhvar/mqtt2prometheus:{{ .Tag }}-amd64" - - "hikhvar/mqtt2prometheus:latest}-amd64" - - "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:{{ .Tag }}}-amd64" - - "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:latest}-amd64" - - "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}}-amd64" - - "ghcr.io/hikhvar/mqtt2prometheus:latest}-amd64" + - "hikhvar/mqtt2prometheus:latest-amd64" + - "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:{{ .Tag }}-amd64" + - "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:latest-amd64" + - "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}-amd64" + - "ghcr.io/hikhvar/mqtt2prometheus:latest-amd64" - dockerfile: release/Dockerfile.scratch goos: linux From fd1e70f82afb74e0b543081fbaf0543e9cb98707 Mon Sep 17 00:00:00 2001 From: Christoph Petrausch Date: Wed, 3 Feb 2021 10:04:58 +0100 Subject: [PATCH 5/8] Use buildx --- .goreleaser.yml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index fee45a3..018e68b 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -76,6 +76,9 @@ dockers: - dockerfile: release/Dockerfile.scratch goos: linux goarch: amd64 + use_buildx: true + build_flag_templates: + - "--platform=linux/amd64" image_templates: - "hikhvar/mqtt2prometheus:{{ .Tag }}-amd64" - "hikhvar/mqtt2prometheus:latest-amd64" @@ -87,6 +90,9 @@ dockers: - dockerfile: release/Dockerfile.scratch goos: linux goarch: arm64 + use_buildx: true + build_flag_templates: + - "--platform=linux/arm64" image_templates: - "hikhvar/mqtt2prometheus:{{ .Tag }}-arm64" - "hikhvar/mqtt2prometheus:latest-arm64" @@ -98,14 +104,17 @@ dockers: - dockerfile: release/Dockerfile.scratch goos: linux goarch: arm - goarm: 5 + goarm: 6 + use_buildx: true + build_flag_templates: + - "--platform=linux/arm/v6" image_templates: - - "hikhvar/mqtt2prometheus:{{ .Tag }}-arm5" - - "hikhvar/mqtt2prometheus:latest-arm5" - - "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:{{ .Tag }}-arm5" - - "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:latest-arm5" - - "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}-arm5" - - "ghcr.io/hikhvar/mqtt2prometheus:latest-arm5" + - "hikhvar/mqtt2prometheus:{{ .Tag }}-arm6" + - "hikhvar/mqtt2prometheus:latest-arm6" + - "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:{{ .Tag }}-arm6" + - "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:latest-arm6" + - "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}-arm6" + - "ghcr.io/hikhvar/mqtt2prometheus:latest-arm6" # .goreleaser.yml docker_manifests: @@ -120,4 +129,4 @@ docker_manifests: image_templates: - "hikhvar/mqtt2prometheus:{{ .Tag }}-amd64" - "hikhvar/mqtt2prometheus:{{ .Tag }}-arm64" - - "hikhvar/mqtt2prometheus:{{ .Tag }}-arm5" \ No newline at end of file + - "hikhvar/mqtt2prometheus:{{ .Tag }}-arm6" \ No newline at end of file From bbebcc608d1284595eb049eef79fe05fb1198d0e Mon Sep 17 00:00:00 2001 From: Christoph Petrausch Date: Wed, 3 Feb 2021 10:27:16 +0100 Subject: [PATCH 6/8] Enable experimental features --- .github/workflows/release.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8cf5751..1e1dc01 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,10 +33,15 @@ jobs: # Github Registry does not support the github actions token - name: Login to Github Registry run: echo ${{secrets.PERSONAL_ACCESS_TOKEN }} | docker login ghcr.io -u hikhvar --password-stdin + - name: Enable docker experimental features for docker manifests + run: | + echo '{"experimental": true}' | sudo tee -a /etc/docker/daemon.json + sudo systemctl restart docker - name: Run GoReleaser uses: goreleaser/goreleaser-action@v1 with: version: latest args: release --rm-dist env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + DOCKER_CLI_EXPERIMENTAL: enabled \ No newline at end of file From 2717da7d0bd869cd1f312d9f98d6b6ebffb6ee39 Mon Sep 17 00:00:00 2001 From: Christoph Petrausch Date: Wed, 3 Feb 2021 12:39:20 +0100 Subject: [PATCH 7/8] Add missing architectures. Remove github packages registry as deploy target --- .goreleaser.yml | 111 +++++++++++++++++++++++++++++++++++++----------- 1 file changed, 86 insertions(+), 25 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 018e68b..25ac1ba 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -29,6 +29,9 @@ builds: - arm - arm64 - 386 + - riscv64 + - ppc64le + - s390x # GOARM to build for when GOARCH is arm. # For more info refer to: https://golang.org/doc/install/source#environment @@ -63,15 +66,6 @@ changelog: - '^test:' dockers: - # TODO: Create Manifests for this - # TODO: Add arm6, arm7 and i386 - # - dockerfile: release/Dockerfile.scratch - # image_templates: - # - "hikhvar/mqtt2prometheus:latest" - # - "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:{{ .Tag }}" - # - "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:latest" - # - "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}" - # - "ghcr.io/hikhvar/mqtt2prometheus:latest" - dockerfile: release/Dockerfile.scratch goos: linux @@ -82,8 +76,6 @@ dockers: image_templates: - "hikhvar/mqtt2prometheus:{{ .Tag }}-amd64" - "hikhvar/mqtt2prometheus:latest-amd64" - - "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:{{ .Tag }}-amd64" - - "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:latest-amd64" - "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}-amd64" - "ghcr.io/hikhvar/mqtt2prometheus:latest-amd64" @@ -96,8 +88,6 @@ dockers: image_templates: - "hikhvar/mqtt2prometheus:{{ .Tag }}-arm64" - "hikhvar/mqtt2prometheus:latest-arm64" - - "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:{{ .Tag }}-arm64" - - "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:latest-arm64" - "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}-arm64" - "ghcr.io/hikhvar/mqtt2prometheus:latest-arm64" @@ -111,22 +101,93 @@ dockers: image_templates: - "hikhvar/mqtt2prometheus:{{ .Tag }}-arm6" - "hikhvar/mqtt2prometheus:latest-arm6" - - "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:{{ .Tag }}-arm6" - - "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:latest-arm6" - "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}-arm6" - "ghcr.io/hikhvar/mqtt2prometheus:latest-arm6" -# .goreleaser.yml -docker_manifests: - # You can have multiple Docker manifests. - - - # Name template for the manifest. - # Defaults to empty. - name_template: hikhvar/mqtt2prometheus:{{ .Tag }} + - dockerfile: release/Dockerfile.scratch + goos: linux + goarch: arm + goarm: 6 + use_buildx: true + build_flag_templates: + - "--platform=linux/arm/v6" + image_templates: + - "hikhvar/mqtt2prometheus:{{ .Tag }}-arm6" + - "hikhvar/mqtt2prometheus:latest-arm6" + - "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}-arm6" + - "ghcr.io/hikhvar/mqtt2prometheus:latest-arm6" - # Image name templates to be added to this manifest. - # Defaults to empty. + - dockerfile: release/Dockerfile.scratch + goos: linux + goarch: arm + goarm: 7 + use_buildx: true + build_flag_templates: + - "--platform=linux/arm/v7" + image_templates: + - "hikhvar/mqtt2prometheus:{{ .Tag }}-arm7" + - "hikhvar/mqtt2prometheus:latest-arm7" + - "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}-arm7" + - "ghcr.io/hikhvar/mqtt2prometheus:latest-arm7" + + - dockerfile: release/Dockerfile.scratch + goos: linux + goarch: 386 + use_buildx: true + build_flag_templates: + - "--platform=linux/386" + image_templates: + - "hikhvar/mqtt2prometheus:{{ .Tag }}-386" + - "hikhvar/mqtt2prometheus:latest-386" + - "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}-386" + - "ghcr.io/hikhvar/mqtt2prometheus:latest-386" + + - dockerfile: release/Dockerfile.scratch + goos: linux + goarch: riscv64 + use_buildx: true + build_flag_templates: + - "--platform=linux/riscv64" + image_templates: + - "hikhvar/mqtt2prometheus:{{ .Tag }}-riscv64" + - "hikhvar/mqtt2prometheus:latest-riscv64" + - "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}-riscv64" + - "ghcr.io/hikhvar/mqtt2prometheus:latest-riscv64" + +docker_manifests: + # Docker Registry + - name_template: hikhvar/mqtt2prometheus:{{ .Tag }} image_templates: - "hikhvar/mqtt2prometheus:{{ .Tag }}-amd64" - "hikhvar/mqtt2prometheus:{{ .Tag }}-arm64" - - "hikhvar/mqtt2prometheus:{{ .Tag }}-arm6" \ No newline at end of file + - "hikhvar/mqtt2prometheus:{{ .Tag }}-arm6" + - "hikhvar/mqtt2prometheus:{{ .Tag }}-arm7" + - "hikhvar/mqtt2prometheus:{{ .Tag }}-riscv64" + - "hikhvar/mqtt2prometheus:{{ .Tag }}-386" + + - name_template: hikhvar/mqtt2prometheus:latest + image_templates: + - "hikhvar/mqtt2prometheus:latest-amd64" + - "hikhvar/mqtt2prometheus:latest-arm64" + - "hikhvar/mqtt2prometheus:latest-arm6" + - "hikhvar/mqtt2prometheus:latest-arm7" + - "hikhvar/mqtt2prometheus:latest-riscv64" + - "hikhvar/mqtt2prometheus:latest-386" + + # Github Registry + - name_template: ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }} + image_templates: + - "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}-amd64" + - "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}-arm64" + - "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}-arm6" + - "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}-arm7" + - "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}-riscv64" + - "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}-386" + - name_template: ghcr.io/hikhvar/mqtt2prometheus:lates + image_templates: + - "ghcr.io/hikhvar/mqtt2prometheus:lates-amd64" + - "ghcr.io/hikhvar/mqtt2prometheus:lates-arm64" + - "ghcr.io/hikhvar/mqtt2prometheus:lates-arm6" + - "ghcr.io/hikhvar/mqtt2prometheus:lates-arm7" + - "ghcr.io/hikhvar/mqtt2prometheus:lates-riscv64" + - "ghcr.io/hikhvar/mqtt2prometheus:lates-386" \ No newline at end of file From 04bf795ba8ed3857c35e51d0869f92ee8208bc7f Mon Sep 17 00:00:00 2001 From: Christoph Petrausch Date: Wed, 3 Feb 2021 12:47:20 +0100 Subject: [PATCH 8/8] Fix typo in image --- .goreleaser.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 25ac1ba..7f7899b 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -183,11 +183,11 @@ docker_manifests: - "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}-arm7" - "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}-riscv64" - "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}-386" - - name_template: ghcr.io/hikhvar/mqtt2prometheus:lates + - name_template: ghcr.io/hikhvar/mqtt2prometheus:latest image_templates: - - "ghcr.io/hikhvar/mqtt2prometheus:lates-amd64" - - "ghcr.io/hikhvar/mqtt2prometheus:lates-arm64" - - "ghcr.io/hikhvar/mqtt2prometheus:lates-arm6" - - "ghcr.io/hikhvar/mqtt2prometheus:lates-arm7" - - "ghcr.io/hikhvar/mqtt2prometheus:lates-riscv64" - - "ghcr.io/hikhvar/mqtt2prometheus:lates-386" \ No newline at end of file + - "ghcr.io/hikhvar/mqtt2prometheus:latest-amd64" + - "ghcr.io/hikhvar/mqtt2prometheus:latest-arm64" + - "ghcr.io/hikhvar/mqtt2prometheus:latest-arm6" + - "ghcr.io/hikhvar/mqtt2prometheus:latest-arm7" + - "ghcr.io/hikhvar/mqtt2prometheus:latest-riscv64" + - "ghcr.io/hikhvar/mqtt2prometheus:latest-386" \ No newline at end of file