Skip to content

Commit

Permalink
Declare env for secrets
Browse files Browse the repository at this point in the history
Signed-off-by: Emiliano Suñé <emiliano.sune@gmail.com>
  • Loading branch information
esune committed Nov 15, 2024
1 parent a2b4688 commit e4cafa4
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/uninstall_install_sandbox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,16 @@ jobs:
namespace: ${{ secrets.OPENSHIFT_NAMESPACE_SANDBOX }}

- name: Uninstall Traction via Helm
env:
namespace: ${{ secrets.OPENSHIFT_NAMESPACE_SANDBOX }}
run: |
helm uninstall traction-sandbox -n ${{ secrets.OPENSHIFT_NAMESPACE_SANDBOX }} --wait --timeout=20m || true
helm uninstall traction-sandbox -n "$namespace" --wait --timeout=20m || true
- name: Remove Traction Openshift Objects
env:
namespace: ${{ secrets.OPENSHIFT_NAMESPACE_SANDBOX }}
run: |
oc delete -n ${{ secrets.OPENSHIFT_NAMESPACE_SANDBOX }} all,secret,pod,networkpolicy,configmap,pvc --selector "app.kubernetes.io/instance"=traction-sandbox
oc delete -n "$namespace" all,secret,pod,networkpolicy,configmap,pvc --selector "app.kubernetes.io/instance"=traction-sandbox
- name: Rocket.Chat Notification
uses: RocketChat/Rocket.Chat.GitHub.Action.Notification@1.1.1
Expand Down Expand Up @@ -75,10 +79,12 @@ jobs:
run: echo "BANNER_MESSAGE=$($GITHUB_WORKSPACE/src/bash/reset-sandbox-date.sh)" >> $GITHUB_ENV

- name: Install Traction via Helm
env:
namespace: ${{ secrets.OPENSHIFT_NAMESPACE_SANDBOX }}
run: |
helm repo add traction https://bcgov.github.io/traction
helm upgrade --install \
-n ${{ secrets.OPENSHIFT_NAMESPACE_SANDBOX }} --wait --timeout=7m \
-n "$namespace" --wait --timeout=7m \
-f ./services/traction/sandbox/values.yaml \
--set ui.ux.infoBanner.message="${BANNER_MESSAGE}" \
traction-sandbox traction/traction
Expand Down

0 comments on commit e4cafa4

Please sign in to comment.