From 3ef2fec8664935f975e0191ee1d9229ef30f4582 Mon Sep 17 00:00:00 2001 From: Jason Hall Date: Wed, 20 Jul 2022 14:38:24 -0400 Subject: [PATCH] Use chainguard-dev/actions/setup-registry (#772) * Use chainguard-dev/actions/setup-registry * run -> uses --- .github/workflows/go-1.18.yaml | 8 ++++---- .github/workflows/sbom.yaml | 20 ++++---------------- 2 files changed, 8 insertions(+), 20 deletions(-) diff --git a/.github/workflows/go-1.18.yaml b/.github/workflows/go-1.18.yaml index 846bc1b245..a3d684ccb9 100644 --- a/.github/workflows/go-1.18.yaml +++ b/.github/workflows/go-1.18.yaml @@ -29,7 +29,7 @@ jobs: with: go-version: ${{ matrix.user-go-version }} check-latest: true - - run: | - go install github.com/google/go-containerregistry/cmd/registry@latest - registry & - KO_DOCKER_REPO=localhost:1338 ko build ./test/ + - uses: chainguard-dev/actions/setup-registry@main + - with: + KO_DOCKER_REPO: localhost:1338 + run: ko build ./test/ diff --git a/.github/workflows/sbom.yaml b/.github/workflows/sbom.yaml index c334ea8064..633432c3c2 100644 --- a/.github/workflows/sbom.yaml +++ b/.github/workflows/sbom.yaml @@ -17,10 +17,7 @@ jobs: with: go-version: 1.17 check-latest: true - - name: Install cmd/registry - run: | - go install github.com/google/go-containerregistry/cmd/registry@latest - registry & + - uses: chainguard-dev/actions/setup-registry@main - uses: actions/checkout@v3 - name: Generate @@ -41,10 +38,7 @@ jobs: with: go-version: 1.17 check-latest: true - - name: Install cmd/registry - run: | - go install github.com/google/go-containerregistry/cmd/registry@latest - registry & + - uses: chainguard-dev/actions/setup-registry@main - uses: actions/checkout@v3 - name: Install CycloneDX @@ -76,10 +70,7 @@ jobs: with: go-version: 1.17 check-latest: true - - name: Install cmd/registry - run: | - go install github.com/google/go-containerregistry/cmd/registry@latest - registry & + - uses: chainguard-dev/actions/setup-registry@main - uses: actions/checkout@v3 - name: Install SPDX Tools @@ -112,10 +103,7 @@ jobs: with: go-version: 1.17 check-latest: true - - name: Install cmd/registry - run: | - go install github.com/google/go-containerregistry/cmd/registry@latest - registry & + - uses: chainguard-dev/actions/setup-registry@main - uses: actions/checkout@v3 - name: Install SPDX Tools