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:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [closed]
|
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
labels:
|
types:
|
||||||
- CI:Build
|
- closed
|
||||||
|
- labeled
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
if: github.event.label.name == 'CI:Build'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -25,11 +26,7 @@ jobs:
|
||||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_HUB_PAT }}
|
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
|
- name: Build and Push Docker Image
|
||||||
run: |
|
run: |
|
||||||
docker build -t ${{ secrets.DOCKER_HUB_USERNAME }}/go-ethereum:latest .
|
docker build -t ${{ secrets.DOCKER_HUB_USERNAME }}/go-ethereum:latest .
|
||||||
docker push ${{ 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
|
name: Deploy and Test Hardhat Project
|
||||||
|
|
||||||
#check
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [closed]
|
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
labels:
|
types:
|
||||||
- CI:Deploy
|
- labeled
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
|
if: github.event.label.name == 'CI:Deploy'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -43,4 +41,4 @@ jobs:
|
||||||
npx hardhat test
|
npx hardhat test
|
||||||
|
|
||||||
- name: Shutdown Docker Compose
|
- name: Shutdown Docker Compose
|
||||||
run: docker-compose down
|
run: docker-compose down
|
||||||
Loading…
Reference in a new issue