Skip to content

Commit

Permalink
chore: fix tester image copy pattern (#6438)
Browse files Browse the repository at this point in the history
Co-authored-by: Tom French <15848336+TomAFrench@users.noreply.github.com>
  • Loading branch information
ludamad and TomAFrench committed May 15, 2024
1 parent f933fc0 commit b892eae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/ensure-tester-with-images/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ runs:
docker images --no-trunc --quiet \$image
done" > .success_key
# TODO better image key
echo "IMAGE_KEY=$(git rev-parse HEAD)" >> $GITHUB_ENV
echo "IMAGE_KEY=$(cat .success_key | md5sum | awk '{print $1}')-$(git rev-parse HEAD)" >> $GITHUB_ENV
echo "${{ inputs.run }}" >> .success_key
echo "SUCCESS_KEY=$(cat .success_key | md5sum | awk '{print $1}') " >> $GITHUB_ENV
echo "SUCCESS_KEY=$(cat .success_key | md5sum | awk '{print $1}')" >> $GITHUB_ENV
- name: Check Cached Success
uses: ./.github/cache-success
Expand All @@ -64,7 +64,7 @@ runs:
sudo flock /var/lib/docker/tmp-images/${{ env.IMAGE_KEY }}.lock bash -c '
if ! [ -f /var/lib/docker/tmp-images/${{ env.IMAGE_KEY }}.brotli ] ; then
docker save aztecprotocol/aztec:${{ env.IMAGE_KEY }} aztecprotocol/end-to-end:${{ env.IMAGE_KEY }} | brotli -2 > /var/lib/docker/tmp-images/${{ env.IMAGE_KEY }}.brotli.tmp
docker save ${{ inputs.builder_images_to_copy }} | brotli -2 > /var/lib/docker/tmp-images/${{ env.IMAGE_KEY }}.brotli.tmp
mv /var/lib/docker/tmp-images/${{ env.IMAGE_KEY }}.brotli.tmp /var/lib/docker/tmp-images/${{ env.IMAGE_KEY }}.brotli
fi'
sudo cat /var/lib/docker/tmp-images/${{ env.IMAGE_KEY }}.brotli
Expand All @@ -74,4 +74,4 @@ runs:
uses: ./.github/run-on-tester
if: ${{ env.CACHE_SUCCESS != 'true' }}
with:
run: ${{ inputs.run }}
run: ${{ inputs.run }}

0 comments on commit b892eae

Please sign in to comment.