Skip to content

Commit 46f52e4

Browse files
committed
add caching for the docker image
1 parent 104580c commit 46f52e4

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,9 +359,17 @@ jobs:
359359
mkdir -p input
360360
curl -L -o input/TestDataWithThumbnail.aasx \
361361
https://media.githubusercontent.com/media/admin-shell-io/aas-test-engines/main/bin/check_servers/test_data/TestDataWithThumbnail.aasx
362-
- name: Build the Docker image
363-
run: |
364-
docker build -t basyx-python-server -f Dockerfile ..
362+
- name: Set up Docker Buildx
363+
uses: docker/setup-buildx-action@v3
364+
- name: Build Docker image with cache
365+
uses: docker/build-push-action@v6
366+
with:
367+
context: .
368+
file: ./server/Dockerfile
369+
push: false
370+
tags: basyx-python-server
371+
cache-from: type=gha
372+
cache-to: type=gha,mode=max
365373
- name: Run container
366374
run: |
367375
docker run -d -p 8081:80 -v ./input:/input -v ./storage:/storage --name basyx-python-server basyx-python-server

0 commit comments

Comments
 (0)