diff --git a/.github/workflows/agent.yml b/.github/workflows/agent.yml index 3d56d42..b1da692 100644 --- a/.github/workflows/agent.yml +++ b/.github/workflows/agent.yml @@ -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/