Skip to content

build(deps): bump sigstore/cosign-installer in the gh-actions group #560

build(deps): bump sigstore/cosign-installer in the gh-actions group

build(deps): bump sigstore/cosign-installer in the gh-actions group #560

Workflow file for this run

name: Build and deploy jwker
on:
push:
paths-ignore:
- 'README.md'
env:
GOOGLE_REGISTRY: europe-north1-docker.pkg.dev/nais-io/nais/images
GITHUB_REGISTRY: ghcr.io
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout latest code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # ratchet:actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # ratchet:actions/setup-go@v5
with:
go-version: '1.23'
check-latest: true
- name: Setup Test
run: |
make kubebuilder
- name: Test Go
run: |
make test
publish-images:
needs: test
name: Publish to Google and GitHub registries
if: github.ref == 'refs/heads/master'
permissions:
contents: "read"
id-token: "write"
packages: "write"
runs-on: ubuntu-latest
env:
RUNNER_IMG: "gcr.io/distroless/static-debian11:nonroot"
BASEIMG_IDENTITY: "[email protected]"
BASEIMG_ISSUER: "https://accounts.google.com"
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # ratchet:actions/checkout@v4
- name: Install cosign
uses: sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da # ratchet:sigstore/cosign-installer@main
with:
cosign-release: 'v2.2.3'
- name: Verify runner image
run: cosign verify --certificate-identity ${{ env.BASEIMG_IDENTITY }} --certificate-oidc-issuer ${{ env.BASEIMG_ISSUER }} ${{ env.RUNNER_IMG }}
- uses: nais/platform-build-push-sign@main # ratchet:exclude
id: build_push_sign
with:
name: jwker
dockerfile: Dockerfile
google_service_account: gh-jwker
push: true
push_ghcr: true
workload_identity_provider: ${{ secrets.NAIS_IO_WORKLOAD_IDENTITY_PROVIDER }}