Skip to content

Commit a849381

Browse files
committed
fixed bake-action stuff in ci
1 parent c23a0ef commit a849381

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

.github/workflows/docker.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)