Skip to content

Commit

Permalink
fix(CI): publish container images only when there is a release
Browse files Browse the repository at this point in the history
  • Loading branch information
iamvigneshwars committed Dec 4, 2024
1 parent bbb83bf commit ea7d97c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/_dashboard_container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ jobs:
with:
context: ./frontend
target: nginx
push: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') }}
load: ${{ !(github.event_name == 'push' && startsWith(github.ref, 'refs/tags')) }}
push: ${{ github.event_name == 'release' && startsWith(github.event.release.tag_name, 'dashboard@') }}
load: ${{ !(github.event_name == 'release' && startsWith(github.event.release.tag_name, 'dashboard@')) }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/_graph_proxy_container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ jobs:
build-args: ARGO_SERVER_SCHEMA_URL=https://raw.githubusercontent.com/argoproj/argo-workflows/main/api/jsonschema/schema.json
context: ./graph-proxy
target: deploy
push: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') }}
load: ${{ !(github.event_name == 'push' && startsWith(github.ref, 'refs/tags')) }}
push: ${{ github.event_name == 'release' && startsWith(github.event.release.tag_name, 'graph-proxy@') }}
load: ${{ !(github.event_name == 'release' && startsWith(github.event.release.tag_name, 'graph-proxy@')) }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/_sessionspaces_container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ jobs:
context: ./sessionspaces
build-args: DATABASE_URL=mysql://root:rootpassword@localhost:3306/ispyb_build
target: deploy
push: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') }}
load: ${{ !(github.event_name == 'push' && startsWith(github.ref, 'refs/tags')) }}
push: ${{ github.event_name == 'release' && startsWith(github.event.release.tag_name, 'sessionspaces@') }}
load: ${{ !(github.event_name == 'release' && startsWith(github.event.release.tag_name, 'sessionspaces@')) }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
Expand Down

0 comments on commit ea7d97c

Please sign in to comment.