mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 17:33:47 +00:00
Check CI-Deploy2
This commit is contained in:
parent
783001708d
commit
400f50833d
2 changed files with 8 additions and 13 deletions
11
.github/workflows/build-push.yml
vendored
11
.github/workflows/build-push.yml
vendored
|
|
@ -2,14 +2,15 @@ name: Build and Push Docker Image
|
|||
|
||||
on:
|
||||
pull_request:
|
||||
types: [closed]
|
||||
branches:
|
||||
- master
|
||||
labels:
|
||||
- CI:Build
|
||||
types:
|
||||
- closed
|
||||
- labeled
|
||||
|
||||
jobs:
|
||||
build:
|
||||
if: github.event.label.name == 'CI:Build'
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
|
@ -25,11 +26,7 @@ jobs:
|
|||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_HUB_PAT }}
|
||||
|
||||
- name: Set ENV Variable for Docker Compose
|
||||
run: echo "DOCKER_HUB_USERNAME=${{ secrets.DOCKER_HUB_USERNAME }}" >> $GITHUB_ENV
|
||||
|
||||
- name: Build and Push Docker Image
|
||||
run: |
|
||||
docker build -t ${{ secrets.DOCKER_HUB_USERNAME }}/go-ethereum:latest .
|
||||
docker push ${{ secrets.DOCKER_HUB_USERNAME }}/go-ethereum:latest
|
||||
|
||||
|
|
|
|||
10
.github/workflows/deploy-test.yml
vendored
10
.github/workflows/deploy-test.yml
vendored
|
|
@ -1,17 +1,15 @@
|
|||
name: Deploy and Test Hardhat Project
|
||||
|
||||
#check
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [closed]
|
||||
branches:
|
||||
- master
|
||||
labels:
|
||||
- CI:Deploy
|
||||
types:
|
||||
- labeled
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
if: github.event.label.name == 'CI:Deploy'
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
|
@ -43,4 +41,4 @@ jobs:
|
|||
npx hardhat test
|
||||
|
||||
- name: Shutdown Docker Compose
|
||||
run: docker-compose down
|
||||
run: docker-compose down
|
||||
Loading…
Reference in a new issue