use singlesnapshot to overcome overlayfs issues
This commit is contained in:
parent
873166ae9f
commit
6295b04d72
1 changed files with 5 additions and 2 deletions
|
|
@ -54,6 +54,9 @@ runs:
|
||||||
# export FF_KANIKO_CACHE_LOOKAHEAD=true
|
# export FF_KANIKO_CACHE_LOOKAHEAD=true
|
||||||
# export FF_KANIKO_ROLLING_CACHE_KEY=true
|
# export FF_KANIKO_ROLLING_CACHE_KEY=true
|
||||||
|
|
||||||
|
# Specify short sha used as build tag
|
||||||
|
SHORT_SHA=$(echo "${{ github.sha }}" | cut -c1-7)
|
||||||
|
|
||||||
# 1. Initialize Kaniko Docker config directory
|
# 1. Initialize Kaniko Docker config directory
|
||||||
mkdir -p /kaniko/.docker
|
mkdir -p /kaniko/.docker
|
||||||
|
|
||||||
|
|
@ -87,7 +90,7 @@ runs:
|
||||||
$DYNAMIC_BUILD_ARGS \
|
$DYNAMIC_BUILD_ARGS \
|
||||||
--destination="$REGISTRY_DOMAIN/${{ inputs.destination_image }}:${{ inputs.image_tag }}" \
|
--destination="$REGISTRY_DOMAIN/${{ inputs.destination_image }}:${{ inputs.image_tag }}" \
|
||||||
--cache=true \
|
--cache=true \
|
||||||
--use-new-run=true \
|
--no-extra-layers \
|
||||||
--snapshot-mode=redo \
|
--single-snapshot \
|
||||||
--cache-dir="${{ forgejo.workspace }}/.kaniko-local-cache" \
|
--cache-dir="${{ forgejo.workspace }}/.kaniko-local-cache" \
|
||||||
--cache-repo="$CACHE_REPO_ARG"
|
--cache-repo="$CACHE_REPO_ARG"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue