Skip to content

Commit

Permalink
Made the push to repository step conditional (only for dev and releas…
Browse files Browse the repository at this point in the history
…e branches)
  • Loading branch information
tgreenwood committed Apr 5, 2024
1 parent 61ca929 commit 793c746
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/package_and_push_helm_chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Package and Push Helm Chart

on:
push:
branches:
- dev
- release
workflow_dispatch:
inputs:
version:
Expand Down Expand Up @@ -57,5 +54,6 @@ jobs:
helm package "charts/fairspace-keycloak" --version ${{ env.VERSION }}
- name: Push Helm chart to repository
if: github.ref == 'refs/heads/release' || github.ref == 'refs/heads/dev'
run: |
helm push "fairspace-keycloak-${{ env.VERSION }}.tgz" "oci://${{ vars.HELM_REGISTRY }}"

0 comments on commit 793c746

Please sign in to comment.