Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Infrastructure GitOps
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Shivering-Isles
Infrastructure GitOps
Commits
bcddd729
Verified
Commit
bcddd729
authored
1 year ago
by
Sheogorath
Browse files
Options
Downloads
Patches
Plain Diff
ci(earthly): Add simply target to verify distroless images
parent
7c413c4f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
images/mirror/Earthfile
+11
-0
11 additions, 0 deletions
images/mirror/Earthfile
with
11 additions
and
0 deletions
images/mirror/Earthfile
+
11
−
0
View file @
bcddd729
...
@@ -24,3 +24,14 @@ trivy:
...
@@ -24,3 +24,14 @@ trivy:
fedora:
fedora:
DO +MIRROR --image=quay.io/fedora/fedora:38@sha256:1972716109b1c906120061063bd4cb50a46c2138d95002ccb90126928d98e013
DO +MIRROR --image=quay.io/fedora/fedora:38@sha256:1972716109b1c906120061063bd4cb50a46c2138d95002ccb90126928d98e013
cosign:
DO +MIRROR --image=gcr.io/projectsigstore/cosign:v2.2.0
SAVE ARTIFACT /ko-app/cosign ./cosign
# verify-distroless allows to use cosign to verify all mirrored distroless images against Google's build identity
verify-distroless:
FROM +fedora
COPY +cosign/cosign /usr/local/bin/cosign
COPY ./Earthfile ./
RUN cat ./Earthfile | grep 'DO +MIRROR --image=gcr.io/distroless/' | grep -Po 'gcr.io/distroless/[a-z0-9-.@/:]+' | xargs /usr/local/bin/cosign verify --certificate-oidc-issuer https://accounts.google.com --certificate-identity keyless@distroless.iam.gserviceaccount.com
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment