removing curl and adding condition for running both labels

This commit is contained in:
Yohan9206 2025-07-14 11:10:48 +03:00
parent 56b8e3b682
commit 50d76ca261
2 changed files with 6 additions and 6 deletions

View file

@ -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 }}

View file

@ -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/