mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +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
8
.github/workflows/deploy-devnet.yml
vendored
8
.github/workflows/deploy-devnet.yml
vendored
|
|
@ -8,12 +8,12 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy-hardhat:
|
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
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
env:
|
env:
|
||||||
BASE_IMAGE: yohands/my_first_container:latest
|
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
|
CONTAINER_NAME: devnet-node
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -75,8 +75,8 @@ jobs:
|
||||||
|
|
||||||
- name: Commit container with deployed contracts
|
- name: Commit container with deployed contracts
|
||||||
run: |
|
run: |
|
||||||
docker commit $CONTAINER_NAME $FINAL_IMAGE
|
docker commit $CONTAINER_NAME $FINAL_IMAGE:latest
|
||||||
docker tag $FINAL_IMAGE my_first_container:${{ env.COMMIT_SHA }}
|
docker tag $FINAL_IMAGE:latest $FINAL_IMAGE:${{ env.COMMIT_SHA }}
|
||||||
|
|
||||||
- name: Stop and remove container
|
- name: Stop and remove container
|
||||||
run: docker rm -f $CONTAINER_NAME
|
run: docker rm -f $CONTAINER_NAME
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ ARG BUILDNUM=""
|
||||||
# Build Geth in a stock Go builder container
|
# Build Geth in a stock Go builder container
|
||||||
FROM golang:1.24-alpine AS builder
|
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
|
# Get dependencies - will also be cached if we won't change go.mod/go.sum
|
||||||
COPY go.mod /go-ethereum/
|
COPY go.mod /go-ethereum/
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue