mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
add steps for manual execution of the workflow
This commit is contained in:
parent
775b74cb1d
commit
a810235ed3
1 changed files with 23 additions and 2 deletions
23
.github/workflows/hell.yml
vendored
23
.github/workflows/hell.yml
vendored
|
|
@ -7,7 +7,7 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run-if-merged-and-has-label:
|
ci-build-on-merge:
|
||||||
if: |
|
if: |
|
||||||
github.event.pull_request.merged == true &&
|
github.event.pull_request.merged == true &&
|
||||||
contains(github.event.pull_request.labels.*.name, 'CI:Build')
|
contains(github.event.pull_request.labels.*.name, 'CI:Build')
|
||||||
|
|
@ -30,3 +30,24 @@ jobs:
|
||||||
platforms: linux/amd64 # Add ,linux/arm64 if you need multi-arch
|
platforms: linux/amd64 # Add ,linux/arm64 if you need multi-arch
|
||||||
push: true # Change to false to keep image local to runner
|
push: true # Change to false to keep image local to runner
|
||||||
tags: go-etherium-satan:latest
|
tags: go-etherium-satan:latest
|
||||||
|
ci-build-manual:
|
||||||
|
if: github.event_name == 'workflow_dispatch'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
# Pull the code
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
# Install Docker Buildx
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
# Build (and optionally push) the image
|
||||||
|
- name: Build and push image
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./Dockerfile # Path to the Dockerfile if not root
|
||||||
|
platforms: linux/amd64 # Add ,linux/arm64 if you need multi-arch
|
||||||
|
push: true # Change to false to keep image local to runner
|
||||||
|
tags: go-etherium-satan:latest
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue