From c0aa3f2421ea4bec0e255fe5cdac04fc4cd865c9 Mon Sep 17 00:00:00 2001 From: Sachin Joshi Date: Mon, 22 Mar 2021 20:55:12 +0545 Subject: [PATCH] limit the CI trigger for release --- .github/workflows/ci.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e04968b32..d051ad927 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,10 @@ name: CI -on: [push, release] +on: + push: + release: + types: + - published env: BLOBBER_REGISTRY: ${{ secrets.BLOBBER_REGISTRY }} @@ -50,7 +54,7 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PASSWORD }} - - name: Build miner + - name: Build run: | docker build -t $BLOBBER_REGISTRY:$TAG -f docker.local/Dockerfile . docker push $BLOBBER_REGISTRY:$TAG @@ -74,7 +78,7 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PASSWORD }} - - name: Build sharder + - name: Build run: | docker build -t $VALIDATOR_REGISTRY:$TAG -f docker.local/ValidatorDockerfile . docker push $VALIDATOR_REGISTRY:$TAG