Skip to content

Commit

Permalink
Merge pull request #139 from gamer191/fix-cache
Browse files Browse the repository at this point in the history
Fix reusing cached Docker image
  • Loading branch information
uraimo committed Nov 21, 2023
2 parents bc33f4e + 3eedc87 commit 4803fad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/run-on-arch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ build_container () {
"${ACTION_DIR}/Dockerfiles" \
--file "$DOCKERFILE" \
--tag "${CONTAINER_NAME}:latest" \
--cache-from="$PACKAGE_REGISTRY"
--cache-from="$PACKAGE_REGISTRY" \
--build-arg BUILDKIT_INLINE_CACHE=1
docker tag "${CONTAINER_NAME}:latest" "$PACKAGE_REGISTRY" \
&& docker push "$PACKAGE_REGISTRY" || true
fi
Expand Down

0 comments on commit 4803fad

Please sign in to comment.