Skip to content

Commit

Permalink
[linux/arm64] Try fix upload container via commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ianks committed Dec 17, 2022
1 parent 581c626 commit 63e23dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,17 @@ 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 != '' }}
uses: actions/upload-artifact@v3
with:
name: docker-save-${{ matrix.platform }}-${{ matrix.docker-platform-cpu }}-${{ github.sha }}
path: ${{ steps.buildx.outputs.image-tarball }}
retention-days: 1

Expand Down

0 comments on commit 63e23dd

Please sign in to comment.