Skip to content

Commit

Permalink
install yq?
Browse files Browse the repository at this point in the history
  • Loading branch information
havardelnan committed Nov 18, 2024
1 parent 992f527 commit d184464
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,18 +173,19 @@ jobs:
uses: azure/setup-helm@v1
with:
version: v3.15.0

- name: install-yq
uses: sigoden/install-binary@v1
with:
repo: mikefarah/yq
tag: v4.44.5
name: yq_linux_amd64
run: |
wget https://github.com/mikefarah/yq/releases/download/${VERSION}/${BINARY}.tar.gz -O - | tar xz && mv ${BINARY} yq && chmod +x yq
env:
VERSION: v4.44.5
BINARY: yq_linux_amd64

- name: Build helm chart
run: |
yq e -i '.version = strenv(ROR_VERSION),.appVersion = strenv(ROR_VERSION)' charts/ror-agent/Chart.yaml
yq e -i '.image.tag = strenv(ROR_VERSION)' charts/ror-agent/values.yaml
yq e -i '.image.repository = "ncr.sky.nhn.no/ror/cluster-agent"' charts/ror-agent/values.yaml
./yq e -i '.version = strenv(ROR_VERSION),.appVersion = strenv(ROR_VERSION)' charts/ror-agent/Chart.yaml
./yq e -i '.image.tag = strenv(ROR_VERSION)' charts/ror-agent/values.yaml
./yq e -i '.image.repository = "ncr.sky.nhn.no/ror/cluster-agent"' charts/ror-agent/values.yaml
helm package charts/ror-cluster-agent-v1
echo ${{ secrets.GITHUB_TOKEN }} | helm registry login -u ${{ github.actor }} ${{ env.REGISTRY }} --password-stdin
helm push ror-cluster-agent-v1-${ROR_VERSION}.tgz oci://${{ env.REGISTRY }}/norskhelsenett/helm/
Expand Down

0 comments on commit d184464

Please sign in to comment.