Skip to content

Commit

Permalink
🐛 release the correct cnspec container flavours (#883)
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Milchev <[email protected]>
  • Loading branch information
imilchev authored Oct 9, 2023
1 parent 8fb6d71 commit 297ad72
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/cnspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ jobs:
matrix:
suffix:
- ""
- -rootless
- -ubi-rootless
- -ubi

steps:
Expand Down Expand Up @@ -67,16 +65,16 @@ jobs:
type=semver,pattern={{major}},value=${{ env.VERSION }}
type=raw,value=latest
flavor: |
suffix=${{ matrix.suffix }},onlatest=true
suffix=${{ matrix.suffix }}-rootless,onlatest=true
- name: Build and push cnspec image
id: build-and-push-operator
uses: docker/build-push-action@v5
with:
context: .
file: cnspec.Dockerfile
build-args: VERSION=${{ env.VERSION }}
platforms: linux/amd64,linux/arm64,linux/arm
build-args: VERSION=${{ env.VERSION }}${{ matrix.suffix }}
platforms: linux/amd64,linux/arm64
push: true
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta.outputs.tags }}
4 changes: 3 additions & 1 deletion cnspec.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ FROM mondoo/cnspec:$VERSION

RUN cnspec providers install os
RUN cnspec providers install network
RUN cnspec providers install k8s
RUN cnspec providers install k8s

USER 100:101

0 comments on commit 297ad72

Please sign in to comment.