Skip to content

Commit d56306f

Browse files
committed
[linux/arm64] [linux/amd64] Use correct ref to commit message
1 parent 1c0461b commit d56306f

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/ci.yml

+6-7
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
PLATFORM: ${{ matrix.platform }}
4545
DOCKER_BUILD_PLATFORM: linux/${{ matrix.docker-platform-cpu }}
4646
steps:
47-
- uses: actions/checkout@v2
47+
- uses: actions/checkout@v3
4848

4949
- name: Cache Docker layers
5050
uses: actions/cache@v3
@@ -72,11 +72,10 @@ jobs:
7272
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"
7373
bundle exec rake build:${PLATFORM} RCD_DOCKER_BUILD="$docker_build"
7474
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
75+
if [[ "$(git log -1 --pretty=format:"%s")" =~ *"$DOCKER_BUILD_PLATFORM"* ]]; then
7776
echo "::info::Saving docker image $extra_tag"
7877
docker save -o "tmp/${extra_tag}.tar" $extra_tag
79-
echo "image-tarball: tmp/${extra_tag}.tar" >> $GITHUB_OUTPUT
78+
echo "image-tarball=tmp/${extra_tag}.tar" >> $GITHUB_OUTPUT
8079
fi
8180
8281
- name: Upload Docker image tarball
@@ -170,7 +169,7 @@ jobs:
170169

171170
runs-on: ${{ matrix.os }}-latest
172171
steps:
173-
- uses: actions/checkout@v2
172+
- uses: actions/checkout@v3
174173
- uses: ruby/setup-ruby@v1
175174
with:
176175
ruby-version: ${{ matrix.ruby }}
@@ -214,7 +213,7 @@ jobs:
214213

215214
runs-on: ${{ matrix.os }}-latest
216215
steps:
217-
- uses: actions/checkout@v2
216+
- uses: actions/checkout@v3
218217
- uses: ruby/setup-ruby@v1
219218
with:
220219
ruby-version: ${{ matrix.ruby }}
@@ -256,7 +255,7 @@ jobs:
256255

257256
runs-on: ubuntu-latest
258257
steps:
259-
- uses: actions/checkout@v2
258+
- uses: actions/checkout@v3
260259
- name: Download gem-${{ matrix.platform }}-${{ matrix.docker-platform-cpu }}
261260
uses: actions/download-artifact@v2
262261
with:

0 commit comments

Comments
 (0)