Commit f5d175b 1 parent 3f6f5fe commit f5d175b Copy full SHA for f5d175b
File tree 4 files changed +60
-6
lines changed
4 files changed +60
-6
lines changed Original file line number Diff line number Diff line change
1
+ name : Test SPM
2
+
3
+ on :
4
+ push :
5
+ branches : [main]
6
+
7
+ pull_request :
8
+ branches : [main]
9
+
10
+ concurrency :
11
+ group : ${{ github.workflow }}-${{ (github.event.pull_request && github.event.pull_request.number) || github.ref || github.run_id }}
12
+ cancel-in-progress : true
13
+
14
+ # See https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions
15
+ permissions :
16
+ contents : read
17
+
18
+ jobs :
19
+ spm :
20
+ runs-on : ubuntu-latest
21
+ steps :
22
+ - name : Harden Runner
23
+ uses : step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
24
+ with :
25
+ egress-policy : audit # TODO: change to 'egress-policy: block' after couple of runs
26
+
27
+ - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
28
+ with :
29
+ submodules : true
30
+
31
+ - name : Fetch git tags
32
+ run : |
33
+ git fetch --prune --unshallow --tags
34
+
35
+ - uses : actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
36
+ with :
37
+ go-version : 1.22.x
38
+
39
+ - name : Setup Node.js version
40
+ uses : ./.github/actions/setup-node.js
41
+
42
+ - name : Temporary - only run the build
43
+ run :
44
+ cd docker-compose/monitor && make build
Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ build-crossdock-fresh: build-crossdock-linux
32
32
make crossdock-fresh
33
33
34
34
.PHONY : crossdock-docker-images-jaeger-backend
35
- crossdock-docker-images-jaeger-backend : PLATFORMS=linux/amd64
36
- crossdock-docker-images-jaeger-backend : create-baseimg create-debugimg
35
+ crossdock-docker-images-jaeger-backend : PLATFORMS=linux/$( shell go env GOARCH)
36
+ crossdock-docker-images-jaeger-backend : create-baseimg create-fake- debugimg
37
37
for component in " jaeger-agent" " jaeger-collector" " jaeger-query" " jaeger-ingester" " all-in-one" ; do \
38
38
regex=" jaeger-(.*)" ; \
39
39
component_suffix=$$ component; \
Original file line number Diff line number Diff line change 1
1
.PHONY : build
2
- build : export DOCKER_TAG = dev
3
2
build : clean-jaeger
4
- cd ../../ && \
5
- make build-all-in-one-linux && \
6
- make docker-images-jaeger-backend
3
+ cd ../../ && make build-all-in-one-linux
4
+ cd ../../ && make create-baseimg PLATFORMS=linux/$(shell go env GOARCH)
5
+ cd ../../ && docker buildx build --target release \
6
+ --tag jaegertracing/all-in-one:dev \
7
+ --build-arg base_image=localhost:5000/baseimg_alpine:latest \
8
+ --build-arg debug_image=not-used \
9
+ --build-arg TARGETARCH=$(shell go env GOARCH) \
10
+ --load \
11
+ cmd/all-in-one
7
12
8
13
# starts up the system required for SPM using the latest otel image and a development jaeger image.
9
14
# Note: the jaeger "dev" image can be built with "make build".
Original file line number Diff line number Diff line change @@ -17,6 +17,11 @@ create-debugimg: prepare-docker-buildx
17
17
--platform=$(PLATFORMS ) \
18
18
docker/debug
19
19
20
+ create-fake-debugimg : prepare-docker-buildx
21
+ docker buildx build -t $(DEBUG_IMAGE ) --push \
22
+ --platform=$(PLATFORMS ) \
23
+ docker/base
24
+
20
25
.PHONY : prepare-docker-buildx
21
26
prepare-docker-buildx :
22
27
docker buildx inspect jaeger-build > /dev/null || docker buildx create --use --name=jaeger-build --buildkitd-flags=" --allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host" --driver-opt=" network=host"
You can’t perform that action at this time.
0 commit comments