Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build docker image on tags without - only (i.e. not for -rc1, -beta) #345

Merged
merged 1 commit into from
Sep 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,18 @@ jobs:
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: flashbots/mev-boost
tags: |
type=raw,value=latest,enable=${{ !contains(steps.vars.outputs.tag, '-') }}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

Expand All @@ -41,8 +53,9 @@ jobs:
build-args: |
VERSION=${{ steps.vars.outputs.tag }}
CGO_CFLAGS=
tags: flashbots/mev-boost:latest,flashbots/mev-boost:${{ steps.vars.outputs.tag }}
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Build and push portable
uses: docker/build-push-action@v3
Expand All @@ -52,8 +65,9 @@ jobs:
build-args: |
VERSION=${{ steps.vars.outputs.tag }}
CGO_CFLAGS=-O -D__BLST_PORTABLE__
tags: flashbots/mev-boost:latest-portable,flashbots/mev-boost:${{ steps.vars.outputs.tag }}-portable
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

build-linux-windows:
runs-on: ubuntu-latest
Expand Down