Skip to content

Commit

Permalink
Enable release pipeline on pull requests but don't push images
Browse files Browse the repository at this point in the history
only push the resulting docker images if the CI job was not triggered on
a pull request (e.g. push to a release branch or manually triggered)
  • Loading branch information
atodorov committed Jun 25, 2024
1 parent e2c16cc commit f7e6c31
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Release

on:
workflow_dispatch:
pull_request:
push:
branches:
- "release/*"
Expand Down Expand Up @@ -36,7 +37,7 @@ jobs:
with:
context: .
file: docker/devnet.dockerfile
push: true
push: ${{ github.event_name != 'pull_request' }}
tags: gluwa/crunch:devnet-${{github.run_id}}

testnet:
Expand Down Expand Up @@ -69,7 +70,7 @@ jobs:
with:
context: .
file: docker/testnet.dockerfile
push: true
push: ${{ github.event_name != 'pull_request' }}
tags: gluwa/crunch:testnet-${{github.run_id}}

mainnet:
Expand Down Expand Up @@ -105,5 +106,5 @@ jobs:
with:
context: .
file: docker/mainnet.dockerfile
push: true
push: ${{ github.event_name != 'pull_request' }}
tags: gluwa/crunch:mainnet-${{github.run_id}}

0 comments on commit f7e6c31

Please sign in to comment.