mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
29 lines
No EOL
733 B
YAML
29 lines
No EOL
733 B
YAML
name: Docker Image Build
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ "master" ]
|
|
types: [ closed ]
|
|
|
|
jobs:
|
|
Build:
|
|
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'CI:Build')
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Build the Docker image
|
|
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 |