go-ethereum/.github/workflows/build.yml
2023-11-03 09:51:46 +02:00

30 lines
No EOL
768 B
YAML

name: Docker Image Build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
types: [ labeled ]
jobs:
build:
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'CI:Build')
runs-on: ubuntu-latest
steps:
- name: Build the Docker image
uses: actions/checkout@v3
run: docker build . --file Dockerfile
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: vatman/client-go:latest