-
Notifications
You must be signed in to change notification settings - Fork 912
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update(build): build and release falco-distroless
Signed-off-by: Luca Guerra <[email protected]> Co-authored-by: Leonardo Grasso <[email protected]>
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,6 +66,8 @@ jobs: | |
run: | | ||
docker push docker.io/falcosecurity/falco-no-driver:aarch64-${{ inputs.tag }} | ||
docker push docker.io/falcosecurity/falco-no-driver:x86_64-${{ inputs.tag }} | ||
docker push docker.io/falcosecurity/falco-distroless:aarch64-${{ inputs.tag }} | ||
docker push docker.io/falcosecurity/falco-distroless:x86_64-${{ inputs.tag }} | ||
docker push docker.io/falcosecurity/falco:aarch64-${{ inputs.tag }} | ||
docker push docker.io/falcosecurity/falco:x86_64-${{ inputs.tag }} | ||
docker push docker.io/falcosecurity/falco-driver-loader:aarch64-${{ inputs.tag }} | ||
|
@@ -79,6 +81,13 @@ jobs: | |
inputs: docker.io/falcosecurity/falco-no-driver:${{ inputs.tag }} | ||
images: docker.io/falcosecurity/falco-no-driver:aarch64-${{ inputs.tag }},docker.io/falcosecurity/falco-no-driver:x86_64-${{ inputs.tag }} | ||
push: true | ||
|
||
- name: Create distroless manifest on Docker Hub | ||
uses: Noelware/[email protected] | ||
with: | ||
inputs: docker.io/falcosecurity/falco-distroless:${{ inputs.tag }} | ||
images: docker.io/falcosecurity/falco-distroless:aarch64-${{ inputs.tag }},docker.io/falcosecurity/falco-distroless:x86_64-${{ inputs.tag }} | ||
push: true | ||
|
||
- name: Tag slim manifest on Docker Hub | ||
run: | | ||
|
@@ -109,13 +118,15 @@ jobs: | |
id: digests | ||
run: | | ||
echo "falco-no-driver=$(crane digest docker.io/falcosecurity/falco-no-driver:${{ inputs.tag }})" >> $GITHUB_OUTPUT | ||
echo "falco-distroless=$(crane digest docker.io/falcosecurity/falco-distroless:${{ inputs.tag }})" >> $GITHUB_OUTPUT | ||
echo "falco=$(crane digest docker.io/falcosecurity/falco:${{ inputs.tag }})" >> $GITHUB_OUTPUT | ||
echo "falco-driver-loader=$(crane digest docker.io/falcosecurity/falco-driver-loader:${{ inputs.tag }})" >> $GITHUB_OUTPUT | ||
echo "falco-driver-loader-legacy=$(crane digest docker.io/falcosecurity/falco-driver-loader-legacy:${{ inputs.tag }})" >> $GITHUB_OUTPUT | ||
- name: Publish images to ECR | ||
run: | | ||
crane copy docker.io/falcosecurity/falco-no-driver:${{ inputs.tag }} public.ecr.aws/falcosecurity/falco-no-driver:${{ inputs.tag }} | ||
crane copy docker.io/falcosecurity/falco-distroless:${{ inputs.tag }} public.ecr.aws/falcosecurity/falco-distroless:${{ inputs.tag }} | ||
crane copy docker.io/falcosecurity/falco:${{ inputs.tag }} public.ecr.aws/falcosecurity/falco:${{ inputs.tag }} | ||
crane copy docker.io/falcosecurity/falco-driver-loader:${{ inputs.tag }} public.ecr.aws/falcosecurity/falco-driver-loader:${{ inputs.tag }} | ||
crane copy docker.io/falcosecurity/falco-driver-loader-legacy:${{ inputs.tag }} public.ecr.aws/falcosecurity/falco-driver-loader-legacy:${{ inputs.tag }} | ||
|
@@ -125,12 +136,14 @@ jobs: | |
if: inputs.is_latest | ||
run: | | ||
crane tag docker.io/falcosecurity/falco-no-driver:${{ inputs.tag }} latest | ||
crane tag docker.io/falcosecurity/falco-distroless:${{ inputs.tag }} latest | ||
crane tag docker.io/falcosecurity/falco:${{ inputs.tag }} latest | ||
crane tag docker.io/falcosecurity/falco-driver-loader:${{ inputs.tag }} latest | ||
crane tag docker.io/falcosecurity/falco-driver-loader-legacy:${{ inputs.tag }} latest | ||
crane tag docker.io/falcosecurity/falco:${{ inputs.tag }}-slim latest-slim | ||
crane tag public.ecr.aws/falcosecurity/falco-no-driver:${{ inputs.tag }} latest | ||
crane tag public.ecr.aws/falcosecurity/falco-distroless:${{ inputs.tag }} latest | ||
crane tag public.ecr.aws/falcosecurity/falco:${{ inputs.tag }} latest | ||
crane tag public.ecr.aws/falcosecurity/falco-driver-loader:${{ inputs.tag }} latest | ||
crane tag public.ecr.aws/falcosecurity/falco-driver-loader-legacy:${{ inputs.tag }} latest | ||
|
@@ -149,11 +162,13 @@ jobs: | |
COSIGN_YES: "true" | ||
run: | | ||
cosign sign docker.io/falcosecurity/falco-no-driver@${{ steps.digests.outputs.falco-no-driver }} | ||
cosign sign docker.io/falcosecurity/falco-distroless@${{ steps.digests.outputs.falco-distroless }} | ||
cosign sign docker.io/falcosecurity/falco@${{ steps.digests.outputs.falco }} | ||
cosign sign docker.io/falcosecurity/falco-driver-loader@${{ steps.digests.outputs.falco-driver-loader }} | ||
cosign sign docker.io/falcosecurity/falco-driver-loader-legacy@${{ steps.digests.outputs.falco-driver-loader-legacy }} | ||
cosign sign public.ecr.aws/falcosecurity/falco-no-driver@${{ steps.digests.outputs.falco-no-driver }} | ||
cosign sign public.ecr.aws/falcosecurity/falco-distroless@${{ steps.digests.outputs.falco-distroless }} | ||
cosign sign public.ecr.aws/falcosecurity/falco@${{ steps.digests.outputs.falco }} | ||
cosign sign public.ecr.aws/falcosecurity/falco-driver-loader@${{ steps.digests.outputs.falco-driver-loader }} | ||
cosign sign public.ecr.aws/falcosecurity/falco-driver-loader-legacy@${{ steps.digests.outputs.falco-driver-loader-legacy }} |