diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8ef6ae28..2f7d8ae8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -72,11 +72,11 @@ jobs: 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" bundle exec rake build:${PLATFORM} RCD_DOCKER_BUILD="$docker_build" - # if [[ "$(git log -1 --pretty=format:"%s")" =~ *"${{ matrix.docker-platform-cpu }}"* ]]; then + if [[ "${{ contains(github.event.head_commit.message, matrix.docker-platform-cpu) }}" == "true" ]]; then echo "::info::Saving docker image $extra_tag" docker save -o "tmp/${extra_tag}.tar" $extra_tag echo "image-tarball=tmp/${extra_tag}.tar" >> $GITHUB_OUTPUT - # fi + fi - name: Upload Docker image tarball if: ${{ steps.buildx.outputs.image-tarball != '' }}