diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3bfaa95..773a2ef 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -91,6 +91,14 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Get tag version + run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV + + - name: Print version + run: | + echo $RELEASE_VERSION + echo ${{ env.RELEASE_VERSION }} + - name: Generate Docker metadata id: meta uses: docker/metadata-action@v5 @@ -100,7 +108,7 @@ jobs: type=sha type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} - type=raw,value=latest + type=raw,value=latest,enable=${{ !contains(env.RELEASE_VERSION, '-') }} - name: Login to Docker Hub uses: docker/login-action@v3 diff --git a/README.md b/README.md index 406d636..508e685 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![Goreport status](https://goreportcard.com/badge/github.com/flashbots/builder-hub)](https://goreportcard.com/report/github.com/flashbots/builder-hub) [![Test status](https://github.com/flashbots/builder-hub/actions/workflows/checks.yml/badge.svg?branch=main)](https://github.com/flashbots/builder-hub/actions?query=workflow%3A%22Checks%22) +[![Docker hub](https://badgen.net/docker/size/flashbots/builder-hub?icon=docker&label=image)](https://hub.docker.com/r/flashbots/builder-hub/tags) BuilderHub is the central data source for BuilderNet builder registration and configuration.