mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
Adding ci_build.yaml
This commit is contained in:
parent
b6f2bbd417
commit
1485302bf1
1 changed files with 36 additions and 0 deletions
36
.github/workflows/ci_build.yaml
vendored
Normal file
36
.github/workflows/ci_build.yaml
vendored
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
name: Merge Events
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- closed
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
build:
|
||||
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'CI:Build')
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Log in to Docker Hub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: your-dockerhub-username/your-repo-name:${{ github.sha }}
|
||||
|
||||
- name: Log out from Docker Hub
|
||||
run: docker logout
|
||||
Loading…
Reference in a new issue