diff mbox series

[ovs-dev,6/7] ci: Make sure that we are using proper image.

Message ID 20240514083851.417951-7-amusil@redhat.com
State Accepted
Headers show
Series Bump of CI Ubuntu and Fedora versions | expand

Checks

Context Check Description
ovsrobot/apply-robot success apply and check: success
ovsrobot/github-robot-_Build_and_Test success github build: passed
ovsrobot/github-robot-_ovn-kubernetes success github build: passed

Commit Message

Ales Musil May 14, 2024, 8:38 a.m. UTC
The container image for scheduled jobs was supposed to be Fedora,
however there was already Ubuntu image in the cache. Make sure
the cache is distinguished also by the event name.

Signed-off-by: Ales Musil <amusil@redhat.com>
---
 .github/workflows/test.yml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 22e4d339d..efe2dac25 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -131,7 +131,7 @@  jobs:
         uses: actions/cache@v4
         with:
           path: /tmp/image.tar
-          key: ${{ github.sha }}
+          key: ${{ github.sha }}/${{ github.event_name }}
 
   build-linux:
     needs: [build-dpdk, prepare-container]
@@ -212,10 +212,11 @@  jobs:
         key: ${{ needs.build-dpdk.outputs.dpdk_key }}
 
     - name: image cache
+      id: image_cache
       uses: actions/cache@v4
       with:
         path: /tmp/image.tar
-        key: ${{ github.sha }}
+        key: ${{ github.sha }}/${{ github.event_name }}
 
     # XXX This should be removed when native crun >=1.9.1
     - name: update crun script