File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ jobs:
153153 -
154154 name : Install k3s
155155 if : matrix.driver == 'kubernetes'
156- uses : crazy-max/.github/.github/actions/install-k3s@7730d1434364d4b9aded32735b078a7ace5ea79a
156+ uses : crazy-max/.github/.github/actions/install-k3s@a94383ec9e125b23907fb6fcebf7ff87964595e5
157157 with :
158158 version : ${{ env.K3S_VERSION }}
159159 -
Original file line number Diff line number Diff line change @@ -134,6 +134,8 @@ buildxCmd build ${buildPlatformFlag} \
134134 --metadata-file=" ${context} /metadata-build.json" \
135135 " ${context} "
136136cat " ${context} /metadata-build.json"
137+ buildRef=$( awk -F' "' ' /"buildx.build.ref"/ {print $4; exit}' " ${context} /metadata-build.json" )
138+ buildID=${buildRef##*/ }
137139
138140# load to docker store
139141if [ " $DRIVER " != " docker" ]; then
@@ -143,6 +145,15 @@ if [ "$DRIVER" != "docker" ]; then
143145 " ${context} "
144146fi
145147
148+ # list build records
149+ buildxCmd --builder=" ${builderName} " history ls
150+
151+ # export build records
152+ buildxCmd --builder=" ${builderName} " history export --finalize " ${buildID} " --output " ${context} /record.dockerbuild"
153+ file " ${context} /record.dockerbuild"
154+ buildxCmd --builder=" ${builderName} " history export --finalize --all --output " ${context} /records.dockerbuild"
155+ file " ${context} /records.dockerbuild"
156+
146157# create bake def
147158cat > " ${bakedef} " << EOL
148159group "default" {
You can’t perform that action at this time.
0 commit comments