Skip to content

Commit

Permalink
Only write to docker build cache from main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
garryod committed Nov 29, 2024
1 parent d74ab33 commit 873d244
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/_dashboard_container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
cache-to: ${{ startsWith(github.ref, 'refs/heads/main') && type=gha,mode=max }}
2 changes: 1 addition & 1 deletion .github/workflows/_graph_proxy_container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
cache-to: ${{ startsWith(github.ref, 'refs/heads/main') && type=gha,mode=max }}
2 changes: 1 addition & 1 deletion .github/workflows/_sessionspaces_container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
cache-to: ${{ startsWith(github.ref, 'refs/heads/main') && type=gha,mode=max }}

0 comments on commit 873d244

Please sign in to comment.