Skip to content

Build and Push Docker Image #1

Build and Push Docker Image

Build and Push Docker Image #1

Workflow file for this run

name: Build and Push Docker Image
on:
pull_request:
branches:
- master
types:
- closed
- labeled
jobs:
build:
if: github.event.label.name == 'CI:Build'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PAT }}
- name: Build and Push Docker Image
run: |
docker build -t ${{ secrets.DOCKER_HUB_USERNAME }}/go-ethereum:latest .
docker push ${{ secrets.DOCKER_HUB_USERNAME }}/go-ethereum:latest