From 8898f0828010a22f59c655a45fefb8c011aaf17f Mon Sep 17 00:00:00 2001 From: Kostas Stamatakis Date: Mon, 14 Oct 2024 20:16:44 +0300 Subject: [PATCH] fix gh artifacts upload with the latest action version --- .github/actions/docker-images/action.yml | 5 +++-- .github/actions/k8s-ci/action.yml | 2 +- .github/workflows/ci.yml | 10 ++++++++-- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/actions/docker-images/action.yml b/.github/actions/docker-images/action.yml index 91b06da543..85f4e31a96 100644 --- a/.github/actions/docker-images/action.yml +++ b/.github/actions/docker-images/action.yml @@ -118,7 +118,7 @@ runs: name: Rotate cache shell: bash run: | - ls -lahR /tmp/ || true + ls -lahR ${{ inputs.docker-images-folder }} || true [[ -d ${{ inputs.docker-build-cache-folder }}-new ]] && rm -rf ${{ inputs.docker-build-cache-folder }} && mv ${{ inputs.docker-build-cache-folder }}-new ${{ inputs.docker-build-cache-folder }} - if: ${{ inputs.build-docker-images == 'true' }} @@ -126,7 +126,8 @@ runs: uses: actions/upload-artifact@v4 with: name: docker-images - path: ${{ inputs.docker-images-folder }} + path: | + ${{ inputs.docker-images-folder }}/*.tar if-no-files-found: error retention-days: 2 overwrite: true diff --git a/.github/actions/k8s-ci/action.yml b/.github/actions/k8s-ci/action.yml index 271118efb5..27e1e8927d 100644 --- a/.github/actions/k8s-ci/action.yml +++ b/.github/actions/k8s-ci/action.yml @@ -19,7 +19,7 @@ inputs: docker-images-folder: description: 'Docker build cache folder' required: false - default: '/tmp/.docker-images' + default: /tmp/.docker-images runs: using: composite steps: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 46cde6466a..bbbb4aae2d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,11 @@ on: # - main # - "[0-9]+.[0-9]+" # types: [opened, synchronize, reopened] + pull_request: + branches: + - main + - "[0-9]+.[0-9]+" + types: [opened, synchronize, reopened] push: branches: - main @@ -230,6 +235,7 @@ jobs: uses: ./.github/actions/docker-images with: build-docker-images: 'true' + docker-images-folder: /tmp/docker-images ci-k8s: needs: [ init-hermit, docker-images ] @@ -280,7 +286,7 @@ jobs: uses: ./.github/actions/docker-images with: build-docker-images: 'false' - docker-images-folder: '/tmp/.docker-images' + docker-images-folder: /tmp/docker-images - name: Run k8s integration tests uses: ./.github/actions/k8s-ci @@ -288,7 +294,7 @@ jobs: kind-config: ${{ matrix.kind-config }} test-target: ${{ matrix.test-target }} values-file: ${{ matrix.values-file }} - docker-images-folder: '/tmp/.docker-images' + docker-images-folder: /tmp/docker-images upload-allure-results: needs: