diff --git a/.github/workflows/build-test.yaml b/.github/workflows/build-test.yaml index 19fee2c5b8..7a81b8c5bc 100644 --- a/.github/workflows/build-test.yaml +++ b/.github/workflows/build-test.yaml @@ -274,7 +274,8 @@ jobs: - uses: actions/setup-go@v3 with: - go-version: '1.20.x' + go-version: '^1.20.0' + cache: true - name: template melange and apko configs run: | @@ -282,11 +283,23 @@ jobs: envsubst "${GIT_TAG}" < deploy/melange.yaml.tmpl > deploy/melange.yaml envsubst "${GIT_TAG}" < deploy/apko.yaml.tmpl > deploy/apko.yaml - - uses: chainguard-dev/actions/melange-build@main - with: - config: deploy/melange.yaml - archs: x86_64 - sign-with-temporary-key: true + # use chainguard-dev/actions/melange-build@main action below instead when caching support is added + - name: set up melange + uses: chainguard-dev/actions/setup-melange@main + + - name: build with melange + run: | + melange build \ + --config deploy/melange.yaml \ + --archs x86_64 \ + --signing-key ${{ github.workspace }}/melange.rsa \ + --cache-dir "$(go env GOMODCACHE)" + + # - uses: chainguard-dev/actions/melange-build@main + # with: + # config: deploy/melange.yaml + # archs: x86_64 + # sign-with-temporary-key: true - uses: chainguard-images/actions/apko-publish@main with: