Skip to content

Commit fbbb3ff

Browse files
committed
cicd: build-public: Remove docker cache
Simplify the workflow by removing the docker cache Signed-off-by: Nate Drude <nate.d@variscite.com>
1 parent 47adaf3 commit fbbb3ff

File tree

1 file changed

+1
-28
lines changed

1 file changed

+1
-28
lines changed

.github/workflows/build-public.yml

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -84,40 +84,13 @@ jobs:
8484
# Prepare Docker build environment
8585
############################################################
8686

87-
# Ensure the cache directory exists so tar always has something to archive
88-
- name: Ensure Docker cache directory exists
89-
run: mkdir -p .docker-image-cache
90-
91-
# Attempt to restore a previously cached fbdebian base image.
92-
# The key is the SHA-256 of the Dockerfile; an exact match is required.
93-
- name: Restore Docker image cache
94-
id: docker-cache
95-
uses: actions/cache@v3
96-
with:
97-
path: .docker-image-cache
98-
key: docker-image-${{ runner.os }}-${{ hashFiles('./docker/debian/Dockerfile') }}
99-
100-
# Load the cached image when available
101-
- name: Load cached image (if a hit)
102-
if: steps.docker-cache.outputs.cache-hit == 'true'
103-
run: |
104-
echo "Loading cached base image"
105-
docker load -i .docker-image-cache/image.tar
106-
107-
# Build the container only when the cache is missing
87+
# Build the container from scratch
10888
- name: Build NXP Docker container
109-
if: steps.docker-cache.outputs.cache-hit != 'true'
11089
run: |
11190
. setup.env || true
11291
echo "FBDIR is '$FBDIR'"
11392
bld docker || true
11493
115-
# Save the freshly-built image back into the cache
116-
- name: Save Docker image to cache
117-
if: steps.docker-cache.outputs.cache-hit != 'true'
118-
run: |
119-
docker save fbdebian:12 -o .docker-image-cache/image.tar
120-
12194
# Export container name for subsequent steps
12295
- name: Save container name to variable
12396
run: |

0 commit comments

Comments
 (0)