This repository has been archived by the owner on Oct 30, 2024. It is now read-only.
Bump actions/cache from 4.0.2 to 4.1.0 (#116) #94
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2023 Chainguard, Inc. | |
# SPDX-License-Identifier: Apache-2.0 | |
name: Publish | |
on: | |
push: | |
branches: ['main'] | |
jobs: | |
publish: | |
name: Publish | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write # For signing | |
contents: read | |
packages: write # For publishing images | |
steps: | |
- uses: actions/setup-go@v5.0.2 | |
with: | |
go-version: '1.20.x' | |
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
- uses: ko-build/setup-ko@v0.7 | |
- run: ko build --image-refs=ko.images --bare --platform=all ./cmd/expander | |
- uses: sigstore/cosign-installer@4959ce089c160fddf62f7b42464195ba1a56d382 # v3.6.0 | |
- run: | | |
# shellcheck disable=SC2046 | |
cosign sign --yes $(cat ko.images) |