|
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
|
@@ -72,11 +72,10 @@ 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 |
| - # 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 |
77 | 76 | echo "::info::Saving docker image $extra_tag"
|
78 | 77 | 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 |
80 | 79 | fi
|
81 | 80 |
|
82 | 81 | - name: Upload Docker image tarball
|
@@ -170,7 +169,7 @@ jobs:
|
170 | 169 |
|
171 | 170 | runs-on: ${{ matrix.os }}-latest
|
172 | 171 | steps:
|
173 |
| - - uses: actions/checkout@v2 |
| 172 | + - uses: actions/checkout@v3 |
174 | 173 | - uses: ruby/setup-ruby@v1
|
175 | 174 | with:
|
176 | 175 | ruby-version: ${{ matrix.ruby }}
|
@@ -214,7 +213,7 @@ jobs:
|
214 | 213 |
|
215 | 214 | runs-on: ${{ matrix.os }}-latest
|
216 | 215 | steps:
|
217 |
| - - uses: actions/checkout@v2 |
| 216 | + - uses: actions/checkout@v3 |
218 | 217 | - uses: ruby/setup-ruby@v1
|
219 | 218 | with:
|
220 | 219 | ruby-version: ${{ matrix.ruby }}
|
@@ -256,7 +255,7 @@ jobs:
|
256 | 255 |
|
257 | 256 | runs-on: ubuntu-latest
|
258 | 257 | steps:
|
259 |
| - - uses: actions/checkout@v2 |
| 258 | + - uses: actions/checkout@v3 |
260 | 259 | - name: Download gem-${{ matrix.platform }}-${{ matrix.docker-platform-cpu }}
|
261 | 260 | uses: actions/download-artifact@v2
|
262 | 261 | with:
|
|
0 commit comments