Skip to content

Commit 0aaa277

Browse files
authored
feat: Add wolfi-based image (#94)
Signed-off-by: Joonas Bergius <[email protected]>
1 parent 6f63289 commit 0aaa277

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/workflows/build.yml

+20
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,15 @@ jobs:
8686
type=sha,prefix=
8787
type=semver,pattern={{version}}
8888
89+
- name: Extract metadata (tags, labels) for Docker
90+
id: meta_wolfi
91+
uses: docker/metadata-action@v5
92+
with:
93+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
94+
tags: |
95+
type=sha,prefix=,suffix=-wolfi
96+
type=semver,pattern={{version}},suffix=-wolfi
97+
8998
- name: Load artifacts
9099
uses: actions/download-artifact@v4
91100
with:
@@ -106,3 +115,14 @@ jobs:
106115
labels: ${{ steps.meta.outputs.labels }}
107116
platforms: linux/amd64,linux/arm64
108117
build-args: "BIN_PATH=artifacts/wasmcloud-operator"
118+
119+
- name: Build and push Docker image (wolfi)
120+
uses: docker/build-push-action@v6
121+
with:
122+
push: true
123+
context: .
124+
file: './Dockerfile.wolfi'
125+
tags: ${{ steps.meta_wolfi.outputs.tags }}
126+
labels: ${{ steps.meta_wolfi.outputs.labels }}
127+
platforms: linux/amd64,linux/arm64
128+
build-args: "BIN_PATH=artifacts/wasmcloud-operator"

Dockerfile.wolfi

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# syntax=docker/dockerfile:1
2+
FROM chainguard/wolfi-base:latest
3+
ARG BIN_PATH
4+
ARG TARGETARCH
5+
6+
COPY ${BIN_PATH}-${TARGETARCH} /usr/local/bin/wasmcloud-operator
7+
ENTRYPOINT ["/usr/local/bin/wasmcloud-operator"]

0 commit comments

Comments
 (0)