File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 44
44
PLATFORM : ${{ matrix.platform }}
45
45
DOCKER_BUILD_PLATFORM : linux/${{ matrix.docker-platform-cpu }}
46
46
steps :
47
- - uses : actions/checkout@v2
47
+ - uses : actions/checkout@v3
48
48
49
49
- name : Cache Docker layers
50
50
uses : actions/cache@v3
73
73
bundle exec rake build:${PLATFORM} RCD_DOCKER_BUILD="$docker_build"
74
74
75
75
# Save the image if the commit message contains the docker platform name (e.g. "[linux/arm64] ...")
76
- if [[ "${{ github.event.head_commit.message }} " == *"[$DOCKER_BUILD_PLATFORM]"* ]]; then
76
+ if [[ "$(git log -1 --pretty=format:"%s") " == *"[$DOCKER_BUILD_PLATFORM]"* ]]; then
77
77
echo "::info::Saving docker image $extra_tag"
78
78
docker save -o "tmp/${extra_tag}.tar" $extra_tag
79
79
echo "image-tarball=tmp/${extra_tag}.tar" >> $GITHUB_OUTPUT
You can’t perform that action at this time.
0 commit comments