go-ethereum/.github/workflows/docker-build.yaml
2025-03-19 08:40:59 +02:00

28 lines
699 B
YAML

name: Docker image CI/CD
on:
pull_request:
types:
- closed
jobs:
build-and-push:
if: contains(github.event.pull_request.labels.*.name, 'CI:Build') && github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and Push Docker Image
uses: docker/build-push-action@v2
with:
context: .
tags: mtotovski/go-ethereum:latest
push: true