1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-02 08:56:07 +00:00

ci: the Docker image is built with a layer cache

Each run built the image from nothing, compiling libvirt-python and
python-ldap again. Buildx keeps the layers in GitHub's cache, so a run
that changes only code rebuilds only the last stage.
This commit is contained in:
catborise 2026-11-08 16:03:51 +03:00
parent 39a3497d28
commit 3b86dcebf5

View file

@ -157,8 +157,19 @@ jobs:
echo sentinel > "$f"
done
- name: Set Up Buildx
uses: docker/setup-buildx-action@v4
# The layers stay in GitHub's cache: a change of the code alone rebuilds
# only the last stage
- name: Build Image
run: docker build -t webvirtcloud:ci .
uses: docker/build-push-action@v7
with:
context: .
load: true
tags: webvirtcloud:ci
cache-from: type=gha
cache-to: type=gha,mode=max
- name: No Runtime Data In Image
run: |