From d2af5b153f2172eae0c61f3bad50a273c75c57ec Mon Sep 17 00:00:00 2001 From: Salah Al Saleh Date: Wed, 24 Jan 2024 16:07:22 +0000 Subject: [PATCH] install envsubst --- .github/workflows/build-test.yaml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-test.yaml b/.github/workflows/build-test.yaml index e740c8b0fb..de6156f310 100644 --- a/.github/workflows/build-test.yaml +++ b/.github/workflows/build-test.yaml @@ -281,18 +281,14 @@ jobs: - id: cache-dir run: echo "cache_dir=$(go env GOMODCACHE)" >> "$GITHUB_OUTPUT" - - name: install envsubst for arm64 - if: matrix.runner.arch == 'arm64' - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - gh release download --repo a8m/envsubst --pattern '*-Linux-arm64' --output envsubst --clobber - chmod +x envsubst - - name: template melange config env: GIT_TAG: ${{ needs.generate-tag.outputs.tag }} - run: envsubst '${GIT_TAG}' < deploy/melange.yaml.tmpl > deploy/melange.yaml + run: | + if [ "${{ matrix.runner.arch }}" == "amd64" ]; then + go install github.com/a8m/envsubst/cmd/envsubst + fi + envsubst '${GIT_TAG}' < deploy/melange.yaml.tmpl > deploy/melange.yaml - uses: chainguard-dev/actions/melange-build@main with: