From 25bfbd761dc899d97cd9c284e46eb3097a19f071 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 22 Aug 2024 20:36:00 -0700 Subject: [PATCH] Fix organization casing in docker workflow (#271) (#272) * Testing lowercase repo name for cache * Remove dev branch from workflow and fix cron schedule * Use lowercase repo for cache-from in PR build as well. --------- Co-authored-by: Aaron Marburg (cherry picked from commit eaa8ec1b3d30273857917192b3fd8e9578e9d157) Co-authored-by: Evan Palmer --- .github/workflows/docker.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 155b92eb..e729e976 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -1,9 +1,8 @@ name: Docker on: - # Disable schedule for preliminary testing - # schedule: - # - cron: "0 17 * * 6" + schedule: + - cron: "0 17 * * 6" push: branches: - iron @@ -114,8 +113,8 @@ jobs: ${{ steps.meta-desktop-nvidia.outputs.bake-file }} push: ${{ env.PUSH }} set: | - *.cache-from=type=registry,ref=ghcr.io/${{ github.repository }}:cache-${{ matrix.ROS_DISTRO }} - *.cache-to=type=registry,mode=max,ref=ghcr.io/${{ github.repository }}:cache-${{ matrix.ROS_DISTRO }} + *.cache-from=type=registry,ref=ghcr.io/${{ steps.lowercase-repo.outputs.repository }}:cache-${{ matrix.ROS_DISTRO }} + *.cache-to=type=registry,mode=max,ref=ghcr.io/${{ steps.lowercase-repo.outputs.repository }}:cache-${{ matrix.ROS_DISTRO }} # Pull request builds are not cached; and only built for AMD64 - if: github.event_name == 'pull_request' @@ -130,5 +129,5 @@ jobs: ./docker-bake.hcl set: | *.platform=linux/amd64 - *.cache-from=type=registry,ref=ghcr.io/${{ github.repository }}:cache-${{ matrix.ROS_DISTRO }} + *.cache-from=type=registry,ref=ghcr.io/${{ steps.lowercase-repo.outputs.repository }}:cache-${{ matrix.ROS_DISTRO }} *.cache-to=