PI-1984 Upgrade Helm chart versions (#3416) #375
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tools | |
# Deploy shared tools - currently just the dummy ingress-test service | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- tools/** | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
project: | |
- ingress-test | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Authenticate | |
uses: ./.github/actions/cloud-platform-auth | |
with: | |
api: ${{ secrets.KUBE_ENV_API }} | |
cert: ${{ secrets.KUBE_CERT }} | |
cluster: ${{ secrets.KUBE_CLUSTER }} | |
namespace: ${{ secrets.KUBE_NAMESPACE }} | |
token: ${{ secrets.KUBE_TOKEN }} | |
- name: Deploy | |
shell: bash | |
run: | | |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" | |
brew install helm | |
helm dependency update . | |
helm upgrade "$PROJECT" . \ | |
--atomic \ | |
--history-max 10 \ | |
--install \ | |
--reset-values \ | |
--timeout 10m \ | |
--values <(curl "$(gh api '/repos/ministryofjustice/hmpps-ip-allowlists/contents/ip-allowlist-groups.yaml' | jq -r '.download_url')") \ | |
--values values.yaml \ | |
--wait | |
working-directory: tools/${{ matrix.project }}/deploy | |
env: | |
PROJECT: ${{ matrix.project }} | |
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_EXTERNAL_REPOS_TOKEN }} |