Skip to content

Commit

Permalink
Added Github Action to deploy Helm Chart
Browse files Browse the repository at this point in the history
  • Loading branch information
tgreenwood committed Mar 29, 2024
1 parent 774584f commit 7a7a7e1
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions .github/workflows/deploy_helm_chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,6 @@ jobs:
fi
echo "ENVIRONMENT=$ENVIRONMENT" >> $GITHUB_ENV
echo "Starting deployment to the $ENVIRONMENT environment"
echo -e "${{ secrets.FAIRSPACE_VALUES_YAML }}" > values.yaml
echo -e "${{ secrets.FNS_TAXONOMIES_TTL }}" > taxonomies.ttl
echo -e "${{ secrets.FNS_VOCABULARY_TTL}}" > vocabulary.ttl
echo -e "${{ secrets.FNS_VIEWS_YAML }}" > views.yaml
sed -i 's/\\//g' values.yaml
sed -i 's/\\//g' views.yaml
sed -i 's/\\//g' vocabulary.ttl
sed -i 's/\\//g' taxonomies.ttl
- name: Define the version
run: |
Expand Down Expand Up @@ -104,13 +96,6 @@ jobs:
helm upgrade --install fairspace oci://${{ env.HELM_REGISTRY }}/fairspace \
--version ${{ env.VERSION }} \
--namespace=fairspace-${{ env.ENVIRONMENT }} \
--set-file saturn.vocabulary=vocabulary.ttl \
--set-file saturn.views=views.yaml \
--values ./values.yaml
# - name: Clean up
# run: |
# rm -rf values.yaml
# rm -rf vocabulary.ttl
# rm -rf taxonomies.ttl
# rm -rf views.yaml
--set-file saturn.vocabulary=.fns/fairspace/model/vocabulary.ttl \
--set-file saturn.views=.fns/fairspace/model/views.yaml \
--values .fns/fairspace/deployment/${{ env.ENVIRONMENT }}/fairspace-test-values.yaml

0 comments on commit 7a7a7e1

Please sign in to comment.