Skip to content

Publish Docker image #6

Publish Docker image

Publish Docker image #6

Workflow file for this run

name: Publish Docker image
on:
workflow_dispatch:
jobs:
publish-docker:
name: Publish to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
registry: docker.io
username: ${{ secrets.DOCKER_USERNAME}}
password: ${{ secrets.DOCKER_ACCESS_TOKEN}}
- name: Determine Docker image tag
id: get_tag
run: |
TAG=$(git describe --tags --exact-match 2>/dev/null || echo "latest")
echo "tag=$TAG" >> $GITHUB_ENV
- name: Build and push image to Docker Hub
run: |
docker buildx build --platform=linux/amd64,linux/arm64 \
-f Dockerfile \
-t "nethermindeth/eigenlayer-oe:${{ env.tag || 'latest' }}" \
. --push