Skip to content

Commit

Permalink
Merge pull request #7 from samply/only-dockerize-protected-branches
Browse files Browse the repository at this point in the history
Only dockerize protected branches
  • Loading branch information
lablans authored Aug 7, 2023
2 parents ea13d6e + 13c3fa5 commit 7ab3c78
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.arch }}-${{ env.PROFILE }}
prefix-key: "v2-rust" # Increase to invalidate old caches.
prefix-key: "v1-rust" # Increase to invalidate old caches.
- name: Build (${{ matrix.arch }})
uses: actions-rs/cargo@v1
with:
Expand All @@ -85,6 +85,8 @@ jobs:
docker:
needs: [ build-rust, pre-check ]
if: github.ref_protected == true

# This workflow defines how a maven package is built, tested and published.
# Visit: https://github.com/samply/github-workflows/blob/develop/.github/workflows/docker-ci.yml, for more information
uses: samply/github-workflows/.github/workflows/docker-ci.yml@main
Expand Down

0 comments on commit 7ab3c78

Please sign in to comment.