File tree Expand file tree Collapse file tree 4 files changed +20
-4
lines changed
Expand file tree Collapse file tree 4 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 33 push :
44 tags :
55 - fortuna-v*
6+ pull_request :
7+ paths :
8+ - " apps/fortuna/**"
69 workflow_dispatch :
710 inputs :
811 dispatch_description :
4750 with :
4851 context : .
4952 file : " ./apps/fortuna/Dockerfile"
50- push : true
53+ push : ${{ github.event_name != 'pull_request' }}
5154 tags : ${{ steps.metadata_fortuna.outputs.tags }}
5255 labels : ${{ steps.metadata_fortuna.outputs.labels }}
Original file line number Diff line number Diff line change 33 push :
44 tags :
55 - hermes-v*
6+ pull_request :
7+ paths :
8+ - " apps/hermes/server/**"
69 workflow_dispatch :
710 inputs :
811 dispatch_description :
3841 AWS_REGION : us-east-1
3942 - run : |
4043 DOCKER_BUILDKIT=1 docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f apps/hermes/server/Dockerfile .
41- docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
44+ if [[ "${{ github.event_name }}" != "pull_request" ]]; then
45+ docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
46+ fi
4247 env:
4348 ECR_REGISTRY: public.ecr.aws
4449 ECR_REPOSITORY: pyth-network/hermes
Original file line number Diff line number Diff line change 33 push :
44 tags :
55 - pyth-price-pusher-v*
6+ pull_request :
7+ paths :
8+ - " apps/price_pusher/**"
9+ - " Dockerfile.node"
610 workflow_dispatch :
711 inputs :
812 dispatch_description :
4044 id : ecr_login
4145 - run : |
4246 DOCKER_BUILDKIT=1 docker build --build-arg package="@pythnetwork/price-pusher" -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f Dockerfile.node .
43- docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
47+ if [[ "${{ github.event_name }}" != "pull_request" ]]; then
48+ docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
49+ fi
4450 env:
4551 ECR_REGISTRY: public.ecr.aws
4652 ECR_REPOSITORY: pyth-network/xc-price-pusher
Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ name: xc_admin_frontend Docker Image
22on :
33 push :
44 branches : [main]
5- paths : [governance/xc_admin/**]
5+ paths : ["governance/xc_admin/**"]
6+ pull_request :
7+ paths : ["governance/xc_admin/**"]
68permissions :
79 contents : read
810 id-token : write
You can’t perform that action at this time.
0 commit comments