1616 DOCKERHUB_REPO : " otel/demo"
1717 GHCR_REPO : " ghcr.io/open-telemetry/demo"
1818
19- strategy :
20- matrix :
21- file_tag :
22- - file : ./src/adservice/Dockerfile
23- tag_suffix : adservice
24- - file : ./src/cartservice/src/Dockerfile
25- tag_suffix : cartservice
26- - file : ./src/checkoutservice/Dockerfile
27- tag_suffix : checkoutservice
28- - file : ./src/currencyservice/Dockerfile
29- tag_suffix : currencyservice
30- - file : ./src/emailservice/Dockerfile
31- tag_suffix : emailservice
32- - file : ./src/frontend/Dockerfile
33- tag_suffix : frontend
34- - file : ./src/paymentservice/Dockerfile
35- tag_suffix : paymentservice
36- - file : ./src/productcatalogservice/Dockerfile
37- tag_suffix : productcatalogservice
38- - file : ./src/quoteservice/Dockerfile
39- tag_suffix : quoteservice
40- - file : ./src/shippingservice/Dockerfile
41- tag_suffix : shippingservice
42- - file : ./src/featureflagservice/Dockerfile
43- tag_suffix : featureflagservice
44- - file : ./src/loadgenerator/Dockerfile
45- tag_suffix : loadgenerator
46- - file : ./src/recommendationservice/Dockerfile
47- tag_suffix : recommendationservice
48- - file : ./src/frontend/Dockerfile.cypress
49- tag_suffix : frontend-tests
50- - file : ./test/Dockerfile
51- tag_suffix : integrationTests
5219 steps :
5320 - uses : actions/checkout@v3
5421 with :
6128 echo $'{"max-concurrent-uploads": 1}' | sudo dd status=none of=/etc/docker/daemon.json
6229 sudo service docker restart
6330
64- - name : Set up QEMU
65- 66-
67- - name : Set up Docker Buildx
68- 69-
70- - name : Cache Docker layers
71- uses : actions/cache@v3
72- with :
73- path : /tmp/.buildx-cache
74- key : ${{ runner.os }}-buildx-${{ github.sha }}
75- restore-keys : |
76- ${{ runner.os }}-buildx-
77-
7831 - name : Log in to the Container registry
7932 uses : docker/login-action@v2
8033 with :
@@ -88,13 +41,11 @@ jobs:
8841 username : ${{ secrets.DOCKER_USERNAME }}
8942 password : ${{ secrets.DOCKER_PASSWORD }}
9043
91- - name : Matrix Build and push demo images
92- 93- with :
94- context : ./
95- file : ${{ matrix.file_tag.file }}
96- platforms : linux/amd64,linux/arm64
97- push : ${{ github.event_name != 'pull_request' }}
98- tags : ${{ env.DOCKERHUB_REPO }}:${{ env.RELEASE_VERSION }}-${{ matrix.file_tag.tag_suffix }},${{ env.GHCR_REPO }}:${{ env.RELEASE_VERSION }}-${{ matrix.file_tag.tag_suffix }}
99- cache-from : type=local,src=/tmp/.buildx-cache
100- cache-to : type=local,dest=/tmp/.buildx-cache
44+ - name : prepare build env
45+ run : make build-env-file
46+
47+ - name : build and push ghcr docker image
48+ run : make build-and-push-ghcr
49+
50+ - name : build and push dockerhub image
51+ run : make build-and-push-dockerhub
0 commit comments