Skip to content

Commit

Permalink
fix build job
Browse files Browse the repository at this point in the history
Signed-off-by: cpanato <ctadeu@gmail.com>
  • Loading branch information
cpanato committed Jun 8, 2022
1 parent 7bcc533 commit 177cb56
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 34 deletions.
5 changes: 4 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@
# limitations under the License.

version: 2

updates:
- package-ecosystem: gomod
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
interval: daily
open-pull-requests-limit: 10
7 changes: 4 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ jobs:
# will use the latest release available for ko
- uses: imjasonh/setup-ko@2c3450ca27f6e6f2b02e72a40f2163c281a1f675 # v0.4

- name: Install goimports
run: go get golang.org/x/tools/cmd/goimports
- uses: chainguard-dev/actions/goimports@84c993eaf02da1c325854fb272a4df9184bd80fc # main

- name: Set up Cloud SDK
uses: google-github-actions/auth@ceee102ec2387dd9e844e01b530ccd4ec87ce955 # v0.8.0
Expand All @@ -58,4 +57,6 @@ jobs:
run: gcloud auth configure-docker --quiet

- name: policy-controller
run: echo -n "${{secrets.COSIGN_PASSWORD}}" | KO_PREFIX=gcr.io/projectsigstore/cosign/ci make sign-policy-controller
env:
COSIGN_EXPERIMENTAL: true
run: KO_PREFIX=gcr.io/projectsigstore/policy-controller/ci make build-sign-containers
11 changes: 0 additions & 11 deletions .github/workflows/cosign-test.key

This file was deleted.

4 changes: 0 additions & 4 deletions .github/workflows/cosign-test.pub

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,5 @@ jobs:
uses: golangci/golangci-lint-action@537aa1903e5d359d0b27dbc19ddd22c5087f3fbc # v3
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.46.0
version: v1.46.2
args: --timeout=5m
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,14 @@
/cosign*
.vscode
.idea
/sget*

# fuzzing artifacts
*.libfuzzer
*fuzz.a

bin*
dist/
cosignImagerefs
policyControllerImagerefs
sgetImagerefs
policyImagerefs

**verify-experimental*
17 changes: 6 additions & 11 deletions test/ci.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,10 @@
# signing ci
############

.PHONY: sign-policy-controller
sign-policy-controller:
cosign sign --key .github/workflows/cosign-test.key -a GIT_HASH=$(GIT_HASH) ${KO_PREFIX}/policy-controller:$(GIT_HASH)
.PHONY: sign-policy-images
sign-policy-images:
cosign sign -a GIT_HASH=$(GIT_HASH) ${KO_PREFIX}/policy-controller:$(GIT_HASH)
cosign sign -a GIT_HASH=$(GIT_HASH) ${KO_PREFIX}/policy-webhook:$(GIT_HASH)

.PHONY: sign-keyless-policy-controller
sign-keyless-policy-controller:
cosign sign -a sha=$(GIT_HASH) -a run_id=${GITHUB_RUN_ID} -a run_attempt=${GITHUB_RUN_ATTEMPT} ${KO_PREFIX}/policy-controller:$(GIT_HASH)
cosign sign -a sha=$(GIT_HASH) -a run_id=${GITHUB_RUN_ID} -a run_attempt=${GITHUB_RUN_ATTEMPT} ${KO_PREFIX}/policy-controller:$(GIT_VERSION)


.PHONY: sign-keyless-container
sign-keyless-container: ko sign-keyless-policy-controller
.PHONY: build-sign-containers
build-sign-containers: ko sign-policy-images

0 comments on commit 177cb56

Please sign in to comment.