From d263722153bf8938bcce4d2de08aa1383b4a6277 Mon Sep 17 00:00:00 2001 From: Chris Hager Date: Wed, 28 Feb 2024 09:48:51 +0100 Subject: [PATCH 1/4] v1.8-dev version bump --- config/vars.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/vars.go b/config/vars.go index 4f4b2732..2848416b 100644 --- a/config/vars.go +++ b/config/vars.go @@ -8,7 +8,7 @@ import ( var ( // Version is set at build time (must be a var, not a const!) - Version = "v1.7.1" + Version = "v1.8-dev" // RFC3339Milli is a time format string based on time.RFC3339 but with millisecond precision RFC3339Milli = "2006-01-02T15:04:05.999Z07:00" From 156aba771ee6da65f49b22029ca6797cb380636e Mon Sep 17 00:00:00 2001 From: Luke Hackett Date: Mon, 6 May 2024 08:16:10 -0700 Subject: [PATCH 2/4] Create build_push.yaml for metrics --- .github/workflows/build_push.yaml | 55 +++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/build_push.yaml diff --git a/.github/workflows/build_push.yaml b/.github/workflows/build_push.yaml new file mode 100644 index 00000000..ba5ea4b5 --- /dev/null +++ b/.github/workflows/build_push.yaml @@ -0,0 +1,55 @@ +on: + workflow_dispatch: + push: + branches: + - gsora/metrics +name: Build and Publish Docker Image +jobs: + build-docker: + runs-on: ubuntu-latest + name: Build Docker Image + steps: + - uses: actions/checkout@v3 + with: + lfs: 'true' + fetch-depth: 0 + submodules: 'recursive' + - uses: docker/setup-buildx-action@v2 + with: + driver-opts: "image=moby/buildkit:v0.10.5" # avoid unknown/unknown arch in ghcr + + - name: Define docker image meta data tags + id: meta + uses: docker/metadata-action@v4 + with: + images: | + ghcr.io/obolnetwork/mev-boost + tags: | + # Tag "git short sha" on all git events + type=sha,prefix= + + # Tag "next" on git-push-to-main-branch events + type=raw,value=next,event=branch,enable={{is_default_branch}} + + # Tag "latest" on git-tag events + type=raw,value=latest,event=tag + + # Tag "tag ref" on git-tag events + type=ref,event=tag + + - name: Login to Github container registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - uses: docker/build-push-action@v4 + with: + context: . + platforms: linux/amd64,linux/arm64 + push: true + build-args: | + GITHUB_SHA=${{ github.sha }} + GO_BUILD_FLAG=${{ env.GO_BUILD_FLAG }} + tags: ${{ steps.meta.outputs.tags }} From f00d0c1ab372f082d8d1bfa4ed1acc393f52b0cf Mon Sep 17 00:00:00 2001 From: Luke Hackett Date: Mon, 6 May 2024 08:18:40 -0700 Subject: [PATCH 3/4] Update build_push.yaml --- .github/workflows/build_push.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build_push.yaml b/.github/workflows/build_push.yaml index ba5ea4b5..696c7cbb 100644 --- a/.github/workflows/build_push.yaml +++ b/.github/workflows/build_push.yaml @@ -14,6 +14,10 @@ jobs: lfs: 'true' fetch-depth: 0 submodules: 'recursive' + + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - uses: docker/setup-buildx-action@v2 with: driver-opts: "image=moby/buildkit:v0.10.5" # avoid unknown/unknown arch in ghcr From fbc449f5189a74781c22e72fcb93841df64523db Mon Sep 17 00:00:00 2001 From: Luke Hackett Date: Mon, 6 May 2024 08:28:54 -0700 Subject: [PATCH 4/4] revert vars.go change --- config/vars.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/vars.go b/config/vars.go index 2848416b..4f4b2732 100644 --- a/config/vars.go +++ b/config/vars.go @@ -8,7 +8,7 @@ import ( var ( // Version is set at build time (must be a var, not a const!) - Version = "v1.8-dev" + Version = "v1.7.1" // RFC3339Milli is a time format string based on time.RFC3339 but with millisecond precision RFC3339Milli = "2006-01-02T15:04:05.999Z07:00"