Skip to content

Commit ecac142

Browse files
authored
ci: build and push Docker image based on Chainguard base image (#2036)
1 parent 4196b34 commit ecac142

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ jobs:
112112
attestations: write
113113
id-token: write
114114
contents: write
115+
strategy:
116+
fail-fast: false
117+
matrix:
118+
dockerfile: [ 'Dockerfile', 'Dockerfile.wolfi' ]
115119
env:
116120
DOCKER_IMAGE_NAME: docker.elastic.co/observability/apm-agent-python
117121
steps:
@@ -137,13 +141,16 @@ jobs:
137141
tags: |
138142
type=raw,value=latest,prefix=test-,enable={{is_default_branch}}
139143
type=semver,pattern={{version}}
144+
flavor: |
145+
suffix=${{ contains(matrix.dockerfile, 'wolfi') && '-wolfi' || '' }}
140146
141147
- name: Build and push image
142148
id: push
143149
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
144150
with:
145151
context: .
146152
push: true
153+
file: ${{ matrix.dockerfile }}
147154
tags: ${{ steps.docker-meta.outputs.tags }}
148155
labels: ${{ steps.docker-meta.outputs.labels }}
149156
build-args: |

Dockerfile.wolfi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM docker.elastic.co/wolfi/chainguard-base@sha256:9f940409f96296ef56140bcc4665c204dd499af4c32c96cc00e792558097c3f1
2+
ARG AGENT_DIR
3+
COPY ${AGENT_DIR} /opt/python

0 commit comments

Comments
 (0)