Skip to content

Commit 63e23dd

Browse files
committed
[linux/arm64] Try fix upload container via commit
1 parent 581c626 commit 63e23dd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/ci.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,17 @@ 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-
# 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
7676
echo "::info::Saving docker image $extra_tag"
7777
docker save -o "tmp/${extra_tag}.tar" $extra_tag
7878
echo "image-tarball=tmp/${extra_tag}.tar" >> $GITHUB_OUTPUT
79-
# fi
79+
fi
8080
8181
- name: Upload Docker image tarball
8282
if: ${{ steps.buildx.outputs.image-tarball != '' }}
8383
uses: actions/upload-artifact@v3
8484
with:
85+
name: docker-save-${{ matrix.platform }}-${{ matrix.docker-platform-cpu }}-${{ github.sha }}
8586
path: ${{ steps.buildx.outputs.image-tarball }}
8687
retention-days: 1
8788

0 commit comments

Comments
 (0)