Skip to content

Commit 15c1b02

Browse files
Disable cache-from on schedule
1 parent 86854d8 commit 15c1b02

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/build_and_publish_debian_docker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
org.opencontainers.image.source=https://github.com/ros-controls/ros2_control_ci
7474
org.opencontainers.image.description=${{ matrix.debian_version }} for ros-controls CI
7575
org.opencontainers.image.licenses=Apache-2.0
76-
cache-from: type=gha,scope=debian-${{ matrix.ros_distro }}
76+
cache-from: ${{ github.event_name != 'schedule' && format('type=gha,scope=debian-{0}', matrix.ros_distro) || '' }}
7777
cache-to: type=gha,scope=debian-${{ matrix.ros_distro }},mode=max
7878
build-args: |
7979
ROS_DISTRO=${{ matrix.ros_distro }}

.github/workflows/build_and_publish_rhel_docker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
org.opencontainers.image.source=https://github.com/ros-controls/ros2_control_ci
7373
org.opencontainers.image.description=${{ matrix.rhel_version }} for ros-controls CI
7474
org.opencontainers.image.licenses=Apache-2.0
75-
cache-from: type=gha,scope=rhel-${{ matrix.ros_distro }}
75+
cache-from: ${{ github.event_name != 'schedule' && format('type=gha,scope=rhel-{0}', matrix.ros_distro) || '' }}
7676
cache-to: type=gha,scope=rhel-${{ matrix.ros_distro }},mode=max
7777
build-args: |
7878
ROS_DISTRO=${{ matrix.ros_distro }}

.github/workflows/build_and_publish_ubuntu_docker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
org.opencontainers.image.source=https://github.com/ros-controls/ros2_control_ci
8989
org.opencontainers.image.description=${{ matrix.base_image }} with preinstalled ROS for ros-controls CI
9090
org.opencontainers.image.licenses=Apache-2.0
91-
cache-from: type=gha,scope=ubuntu-${{ matrix.ros_distro }}${{ matrix.ros-repo-packages }}
91+
cache-from: ${{ github.event_name != 'schedule' && format('type=gha,scope=ubuntu-{0}{1}', matrix.ros_distro, matrix.ros-repo-packages) || '' }}
9292
cache-to: type=gha,scope=ubuntu-${{ matrix.ros_distro }}${{ matrix.ros-repo-packages }},mode=max
9393
build-args: |
9494
FROM=${{ matrix.base_image }}

0 commit comments

Comments
 (0)