File tree 3 files changed +39
-3
lines changed
3 files changed +39
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : " Update builder docker image"
2
+
3
+ on :
4
+ push :
5
+ branches : ["main"]
6
+ paths :
7
+ - " Dockerfile"
8
+
9
+ jobs :
10
+ build-and-push :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - name : Checkout code
14
+ uses : actions/checkout@v4
15
+ - name : Set up environment
16
+ uses : ./.github/workflows/env
17
+ - name : Login to Docker Hub
18
+ uses : docker/login-action@v3
19
+ with :
20
+ username : ${{ secrets.DOCKER_USERNAME }}
21
+ password : ${{ secrets.DOCKER_PASSWORD }}
22
+ - name : Set up QEMU
23
+ uses : docker/setup-qemu-action@v3
24
+ - name : Set up Docker Buildx
25
+ uses : docker/setup-buildx-action@v3
26
+ - name : Set current timestamp tag
27
+ id : tag
28
+ run : |
29
+ echo "tag=$(date +%Y%m%d%H%M)" >> $GITHUB_OUTPUT
30
+ - name : Build and push
31
+ uses : docker/build-push-action@v6
32
+ with :
33
+ push : true
34
+ file : Dockerfile
35
+ platforms : linux/amd64,linux/arm64
36
+ tags : otel/opentelemetry-ebpf-profiler-dev:latest,otel/opentelemetry-ebpf-profiler-dev:${{ steps.tag.outputs.tag }}
Original file line number Diff line number Diff line change 1
- FROM debian:testing
1
+ FROM debian:testing-20241223-slim
2
2
3
3
WORKDIR /agent
4
4
Original file line number Diff line number Diff line change @@ -119,11 +119,11 @@ docker-image:
119
119
docker build -t profiling-agent -f Dockerfile .
120
120
121
121
agent :
122
- docker run -v " $$ PWD" :/agent -it --rm --user $(shell id -u) :$(shell id -g) profiling-agent \
122
+ docker run -v " $$ PWD" :/agent -it --rm --user $(shell id -u) :$(shell id -g) otel/opentelemetry-ebpf-profiler-dev:latest \
123
123
" make TARGET_ARCH=$( TARGET_ARCH) VERSION=$( VERSION) REVISION=$( REVISION) BUILD_TIMESTAMP=$( BUILD_TIMESTAMP) "
124
124
125
125
debug-agent :
126
- docker run -v " $$ PWD" :/agent -it --rm --user $(shell id -u) :$(shell id -g) profiling-agent \
126
+ docker run -v " $$ PWD" :/agent -it --rm --user $(shell id -u) :$(shell id -g) otel/opentelemetry-ebpf-profiler-dev:latest \
127
127
" make TARGET_ARCH=$( TARGET_ARCH) VERSION=$( VERSION) REVISION=$( REVISION) BUILD_TIMESTAMP=$( BUILD_TIMESTAMP) debug"
128
128
129
129
legal :
You can’t perform that action at this time.
0 commit comments