Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Commit

Permalink
docker push patch (#19)
Browse files Browse the repository at this point in the history
* debug: release error

* debug: releaeser bug

* debug: releaser break

* debug release flow

* debug: release

* debug: release incompatability

* debug

* releaser debugging

* cont debug

* debug releaser

* debug: uncomment builds

* fix: formatting cleanup

* debug: docker push tags

* debug: releaser tag

* debug releaser

* cont debug

* debug

* cont debug

* fix: formatting

---------

Co-authored-by: dan moore <[email protected]>
  • Loading branch information
rebelArtists and dan moore authored Jun 20, 2023
1 parent f99ab54 commit 8eb6430
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 17 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@master
with:
go-version: 1.18.x
go-version: 1.20.x

- name: Prepare
id: prepare
Expand All @@ -36,8 +36,6 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- run: echo ${{ steps.prepare.outputs.tag_name }}

- name: Run GoReleaser
run: |
make release
Expand All @@ -46,3 +44,23 @@ jobs:
VERSION: ${{ steps.prepare.outputs.tag_name }}
DOCKER_USERNAME: ${{ secrets.DOCKERHUB }}
DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_KEY }}

- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB }}
password: ${{ secrets.DOCKERHUB_KEY }}

- name: Push all relevant images to docker hub
run: |
TAG=${{ steps.prepare.outputs.tag_name }}
docker push 0xpolygon/erigon:${TAG:1}-amd64
docker push 0xpolygon/erigon:${TAG:1}-arm64
- name: Combine digests into single docker tag and latest tag
run: |
TAG=${{ steps.prepare.outputs.tag_name }}
docker manifest create 0xpolygon/erigon:${TAG:1} --amend 0xpolygon/erigon:${TAG:1}-amd64 --amend 0xpolygon/erigon:${TAG:1}-arm64
docker manifest push 0xpolygon/erigon:${TAG:1}
docker manifest create 0xpolygon/erigon:latest --amend 0xpolygon/erigon:${TAG:1}-amd64 --amend 0xpolygon/erigon:${TAG:1}-arm64
docker manifest push 0xpolygon/erigon:latest
15 changes: 2 additions & 13 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ dockers:
- 0xpolygon/{{ .ProjectName }}:{{ .Version }}-amd64
dockerfile: Dockerfile.release
use: buildx
skip_push: false
skip_push: true
goarch: amd64
ids:
- linux-amd64
Expand All @@ -80,25 +80,14 @@ dockers:
- image_templates:
- 0xpolygon/{{ .ProjectName }}:{{ .Version }}-arm64
dockerfile: Dockerfile.release
skip_push: false
skip_push: true
use: buildx
goarch: arm64
ids:
- linux-arm64
build_flag_templates:
- --platform=linux/arm64/v8

docker_manifests:
- name_template: 0xpolygon/{{ .ProjectName }}:{{ .Version }}
image_templates:
- 0xpolygon/{{ .ProjectName }}:{{ .Version }}-amd64
- 0xpolygon/{{ .ProjectName }}:{{ .Version }}-arm64

- name_template: 0xpolygon/{{ .ProjectName }}:latest
image_templates:
- 0xpolygon/{{ .ProjectName }}:{{ .Version }}-amd64
- 0xpolygon/{{ .ProjectName }}:{{ .Version }}-arm64

announce:
slack:
enabled: false
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ git-submodules:
@git submodule update --quiet --init --recursive --force || true

PACKAGE_NAME := github.com/maticnetwork/erigon
GOLANG_CROSS_VERSION ?= v1.18.1
GOLANG_CROSS_VERSION ?= v1.20.5

.PHONY: release-dry-run
release-dry-run: git-submodules
Expand Down

0 comments on commit 8eb6430

Please sign in to comment.