File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -72,16 +72,17 @@ jobs:
72
72
docker_build="docker buildx build --platform=$DOCKER_BUILD_PLATFORM --cache-from=type=local,src=tmp/build-cache --cache-to=type=local,dest=tmp/build-cache-new --load -t $extra_tag"
73
73
bundle exec rake build:${PLATFORM} RCD_DOCKER_BUILD="$docker_build"
74
74
75
- # if [[ "$(git log -1 --pretty=format:"%s")" =~ *"$ {{ matrix.docker-platform-cpu }}"* ]]; then
75
+ if [[ "${{ contains(github.event.head_commit.message, matrix.docker-platform-cpu) }}" == "true" ]]; then
76
76
echo "::info::Saving docker image $extra_tag"
77
77
docker save -o "tmp/${extra_tag}.tar" $extra_tag
78
78
echo "image-tarball=tmp/${extra_tag}.tar" >> $GITHUB_OUTPUT
79
- # fi
79
+ fi
80
80
81
81
- name : Upload Docker image tarball
82
82
if : ${{ steps.buildx.outputs.image-tarball != '' }}
83
83
uses : actions/upload-artifact@v3
84
84
with :
85
+ name : docker-save-${{ matrix.platform }}-${{ matrix.docker-platform-cpu }}-${{ github.sha }}
85
86
path : ${{ steps.buildx.outputs.image-tarball }}
86
87
retention-days : 1
87
88
You can’t perform that action at this time.
0 commit comments