mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
37 lines
No EOL
900 B
YAML
37 lines
No EOL
900 B
YAML
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: Login to DockerHub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
- name: Build and push Docker image
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: .
|
|
push: true
|
|
tags: e1018mc/limechain:latest
|
|
# tags: e1018mc/limechain:${{ github.sha }}
|
|
|
|
- name: Log out from DockerHub
|
|
run: docker logout |