Browse code

ci: update workflow artifacts retention

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>

CrazyMax authored on 2024/03/27 18:57:01
Showing 3 changed files
... ...
@@ -70,6 +70,7 @@ jobs:
70 70
         with:
71 71
           name: test-reports-unit-${{ inputs.storage }}
72 72
           path: /tmp/reports/*
73
+          retention-days: 1
73 74
 
74 75
   unit-report:
75 76
     runs-on: ubuntu-20.04
... ...
@@ -150,6 +151,7 @@ jobs:
150 150
         with:
151 151
           name: test-reports-docker-py-${{ inputs.storage }}
152 152
           path: /tmp/reports/*
153
+          retention-days: 1
153 154
 
154 155
   integration-flaky:
155 156
     runs-on: ubuntu-20.04
... ...
@@ -271,6 +273,7 @@ jobs:
271 271
         with:
272 272
           name: test-reports-integration-${{ inputs.storage }}-${{ env.TESTREPORTS_NAME }}
273 273
           path: /tmp/reports/*
274
+          retention-days: 1
274 275
 
275 276
   integration-report:
276 277
     runs-on: ubuntu-20.04
... ...
@@ -410,6 +413,7 @@ jobs:
410 410
         with:
411 411
           name: test-reports-integration-cli-${{ inputs.storage }}-${{ env.TESTREPORTS_NAME }}
412 412
           path: /tmp/reports/*
413
+          retention-days: 1
413 414
 
414 415
   integration-cli-report:
415 416
     runs-on: ubuntu-20.04
... ...
@@ -190,6 +190,7 @@ jobs:
190 190
         with:
191 191
           name: ${{ inputs.os }}-${{ inputs.storage }}-unit-reports
192 192
           path: ${{ env.GOPATH }}\src\github.com\docker\docker\bundles\*
193
+          retention-days: 1
193 194
 
194 195
   unit-test-report:
195 196
     runs-on: ubuntu-latest
... ...
@@ -508,6 +509,7 @@ jobs:
508 508
         with:
509 509
           name: ${{ inputs.os }}-${{ inputs.storage }}-integration-reports-${{ matrix.runtime }}-${{ env.TESTREPORTS_NAME }}
510 510
           path: ${{ env.GOPATH }}\src\github.com\docker\docker\bundles\*
511
+          retention-days: 1
511 512
 
512 513
   integration-test-report:
513 514
     runs-on: ubuntu-latest
... ...
@@ -51,14 +51,6 @@ jobs:
51 51
         name: Check artifacts
52 52
         run: |
53 53
           find ${{ env.DESTDIR }} -type f -exec file -e ascii -- {} +
54
-      -
55
-        name: Upload artifacts
56
-        uses: actions/upload-artifact@v4
57
-        with:
58
-          name: ${{ matrix.target }}
59
-          path: ${{ env.DESTDIR }}
60
-          if-no-files-found: error
61
-          retention-days: 7
62 54
 
63 55
   prepare-cross:
64 56
     runs-on: ubuntu-latest
... ...
@@ -119,11 +111,3 @@ jobs:
119 119
         name: Check artifacts
120 120
         run: |
121 121
           find ${{ env.DESTDIR }} -type f -exec file -e ascii -- {} +
122
-      -
123
-        name: Upload artifacts
124
-        uses: actions/upload-artifact@v4
125
-        with:
126
-          name: cross-${{ env.PLATFORM_PAIR }}
127
-          path: ${{ env.DESTDIR }}
128
-          if-no-files-found: error
129
-          retention-days: 7