mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 14:16:44 +00:00
trying to build image
This commit is contained in:
parent
d2ff7b2b8d
commit
bd0624ef12
1 changed files with 30 additions and 0 deletions
30
.github/workflows/dockerBuild.yml
vendored
Normal file
30
.github/workflows/dockerBuild.yml
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
name: Build Docker Image on CI:Build Label Merge
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [closed]
|
||||||
|
branches:
|
||||||
|
- master # or your default branch
|
||||||
|
|
||||||
|
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@v3
|
||||||
|
|
||||||
|
- name: Build Docker image
|
||||||
|
run: |
|
||||||
|
docker build -t my_first_container .
|
||||||
|
|
||||||
|
# Optional: Push to Docker Hub or GitHub Container Registry
|
||||||
|
# - name: Log in to Docker Hub
|
||||||
|
# run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
||||||
|
|
||||||
|
# - name: Push image
|
||||||
|
# run: docker push geth-custom
|
||||||
Loading…
Reference in a new issue