mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 22:26:42 +00:00
removing curl and adding condition for running both labels
This commit is contained in:
parent
56b8e3b682
commit
50d76ca261
2 changed files with 6 additions and 6 deletions
10
.github/workflows/deploy-devnet.yml
vendored
10
.github/workflows/deploy-devnet.yml
vendored
|
|
@ -8,12 +8,12 @@ on:
|
|||
|
||||
jobs:
|
||||
deploy-hardhat:
|
||||
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'CI:Deploy')
|
||||
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'CI:Deploy') || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success')
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
env:
|
||||
BASE_IMAGE: yohands/my_first_container:latest
|
||||
FINAL_IMAGE: yohands/my_first_container:with-contracts
|
||||
FINAL_IMAGE: yohands/my_first-contracts
|
||||
CONTAINER_NAME: devnet-node
|
||||
|
||||
steps:
|
||||
|
|
@ -75,8 +75,8 @@ jobs:
|
|||
|
||||
- name: Commit container with deployed contracts
|
||||
run: |
|
||||
docker commit $CONTAINER_NAME $FINAL_IMAGE
|
||||
docker tag $FINAL_IMAGE my_first_container:${{ env.COMMIT_SHA }}
|
||||
docker commit $CONTAINER_NAME $FINAL_IMAGE:latest
|
||||
docker tag $FINAL_IMAGE:latest $FINAL_IMAGE:${{ env.COMMIT_SHA }}
|
||||
|
||||
- name: Stop and remove container
|
||||
run: docker rm -f $CONTAINER_NAME
|
||||
|
|
@ -90,4 +90,4 @@ jobs:
|
|||
- name: Push image to Docker Hub
|
||||
run: |
|
||||
docker push $FINAL_IMAGE:latest
|
||||
docker push $FINAL_IMAGE:${{ env.COMMIT_SHA }}
|
||||
docker push $FINAL_IMAGE:${{ env.COMMIT_SHA }}
|
||||
|
|
@ -6,7 +6,7 @@ ARG BUILDNUM=""
|
|||
# Build Geth in a stock Go builder container
|
||||
FROM golang:1.24-alpine AS builder
|
||||
|
||||
RUN apk add --no-cache gcc musl-dev linux-headers git curl
|
||||
RUN apk add --no-cache gcc musl-dev linux-headers git
|
||||
|
||||
# Get dependencies - will also be cached if we won't change go.mod/go.sum
|
||||
COPY go.mod /go-ethereum/
|
||||
|
|
|
|||
Loading…
Reference in a new issue