Skip to content

Commit cf0897f

Browse files
committed
docker scan fixes
1 parent 168230f commit cf0897f

File tree

1 file changed

+7
-22
lines changed

1 file changed

+7
-22
lines changed

.github/workflows/docker.yml

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,31 +13,16 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v4
16-
- name: Set up Docker Buildx
17-
uses: docker/setup-buildx-action@v3
18-
1916
- 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
17+
run: |
18+
docker build -f ./backend/Dockerfile.base -t integr8scode-base:latest ./backend
2919
3020
- name: Build Docker image
31-
uses: docker/build-push-action@v6
32-
with:
33-
context: ./backend
34-
push: false
35-
load: true
36-
tags: integr8scode:test
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
21+
run: |
22+
DOCKER_BUILDKIT=1 docker build \
23+
--build-context base=docker-image://integr8scode-base:latest \
24+
-t integr8scode:test \
25+
./backend
4126
- name: Run Trivy vulnerability scanner
4227
uses: aquasecurity/trivy-action@master
4328
with:

0 commit comments

Comments
 (0)