diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e5c492..0196919 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,7 @@ jobs: - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 with: go-version-file: go.mod + cache: false - name: Configure private Go modules env: RELEASES_TOKEN: ${{ secrets.RELEASES_TOKEN || github.token }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3cf2900..a10e849 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,6 +16,7 @@ jobs: - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 with: go-version-file: go.mod + cache: false - name: Configure private Go modules env: RELEASES_TOKEN: ${{ secrets.RELEASES_TOKEN || github.token }} @@ -23,13 +24,24 @@ jobs: git config --global url."https://x-access-token:${RELEASES_TOKEN}@github.com/GoCodeAlone/".insteadOf "https://github.com/GoCodeAlone/" go env -w GOPRIVATE=github.com/GoCodeAlone/* go env -w GONOSUMDB=github.com/GoCodeAlone/* - - name: Install wfctl v0.74.5 + - name: Install wfctl v0.74.6 + env: + GH_TOKEN: ${{ secrets.RELEASES_TOKEN || github.token }} + WFCTL_VERSION: v0.74.6 run: | + set -euo pipefail + runner_arch=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/') + asset="wfctl-linux-${runner_arch}" + download_dir="$(mktemp -d)" + gh release download "${WFCTL_VERSION}" \ + --repo GoCodeAlone/workflow \ + --pattern "${asset}" \ + --pattern checksums.txt \ + --dir "${download_dir}" + (cd "${download_dir}" && grep " ${asset}$" checksums.txt | sha256sum -c -) mkdir -p "${RUNNER_TEMP}/wfctl-bin" - curl -sSfL -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ - -o "${RUNNER_TEMP}/wfctl-bin/wfctl" \ - "https://github.com/GoCodeAlone/workflow/releases/download/v0.74.5/wfctl-linux-amd64" - chmod +x "${RUNNER_TEMP}/wfctl-bin/wfctl" + install -m 0755 "${download_dir}/${asset}" "${RUNNER_TEMP}/wfctl-bin/wfctl" + echo "${RUNNER_TEMP}/wfctl-bin" >> "$GITHUB_PATH" - uses: goreleaser/goreleaser-action@5daf1e915a5f0af01ddbcd89a43b8061ff4f1a89 # v7.2.2 with: distribution: goreleaser @@ -66,6 +78,7 @@ jobs: - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 with: go-version-file: go.mod + cache: false - name: Configure private Go modules for runtime image env: RELEASES_TOKEN: ${{ secrets.RELEASES_TOKEN || github.token }} @@ -104,7 +117,7 @@ jobs: timeout-minutes: 5 steps: - name: Notify workflow-registry of new release - uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4 + uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4.0.1 with: token: ${{ secrets.REPO_DISPATCH_TOKEN }} repository: GoCodeAlone/workflow-registry diff --git a/docker/product-capture-browser/Dockerfile b/docker/product-capture-browser/Dockerfile index 75ec716..67b2503 100644 --- a/docker/product-capture-browser/Dockerfile +++ b/docker/product-capture-browser/Dockerfile @@ -1,4 +1,4 @@ -FROM node:22-bookworm-slim +FROM node:24-bookworm-slim ENV NODE_PATH=/usr/local/lib/node_modules \ HOME=/tmp \ diff --git a/go.mod b/go.mod index 61880e8..de006b1 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/GoCodeAlone/workflow-plugin-product-capture -go 1.26.0 +go 1.26.4 require ( github.com/GoCodeAlone/workflow v0.74.5