Skip to content

Commit

Permalink
[linux/arm64] [linux/amd64] Use correct ref to commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
ianks committed Dec 17, 2022
1 parent 6f14ef0 commit 305b582
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
PLATFORM: ${{ matrix.platform }}
DOCKER_BUILD_PLATFORM: linux/${{ matrix.docker-platform-cpu }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Cache Docker layers
uses: actions/cache@v3
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
bundle exec rake build:${PLATFORM} RCD_DOCKER_BUILD="$docker_build"
# Save the image if the commit message contains the docker platform name (e.g. "[linux/arm64] ...")
if [[ "${{ github.event.head_commit.message }}" == *"[$DOCKER_BUILD_PLATFORM]"* ]]; then
if [[ "$(git log -1 --pretty=format:"%s")" == *"[$DOCKER_BUILD_PLATFORM]"* ]]; 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
Expand Down

0 comments on commit 305b582

Please sign in to comment.