Check CI-Deploy2

This commit is contained in:
Nikola 2025-01-06 23:08:22 +02:00
parent 783001708d
commit 400f50833d
2 changed files with 8 additions and 13 deletions

View file

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

View file

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