File tree Expand file tree Collapse file tree 1 file changed +18
-4
lines changed
Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -14,16 +14,30 @@ jobs:
1414 steps :
1515 - uses : actions/checkout@v4
1616 - name : Set up Docker Buildx
17- uses : docker/setup-buildx-action@v2
17+ uses : docker/setup-buildx-action@v3
18+
19+ - name : Build base image
20+ uses : docker/build-push-action@v6
21+ with :
22+ context : ./backend
23+ file : ./backend/Dockerfile.base
24+ push : false
25+ load : true
26+ tags : integr8scode-base:latest
27+ cache-from : type=gha,scope=base
28+ cache-to : type=gha,mode=max,scope=base
29+
1830 - name : Build Docker image
19- uses : docker/build-push-action@v4
31+ uses : docker/build-push-action@v6
2032 with :
2133 context : ./backend
2234 push : false
2335 load : true
2436 tags : integr8scode:test
25- cache-from : type=gha
26- cache-to : type=gha,mode=max
37+ build-contexts : |
38+ base=docker-image://integr8scode-base:latest
39+ cache-from : type=gha,scope=backend
40+ cache-to : type=gha,mode=max,scope=backend
2741 - name : Run Trivy vulnerability scanner
2842 uses : aquasecurity/trivy-action@master
2943 with :
You can’t perform that action at this time.
0 commit comments