diff --git a/.github/workflows/amd64.yml b/.github/workflows/amd64.yml index 22c9821..f9f52dd 100644 --- a/.github/workflows/amd64.yml +++ b/.github/workflows/amd64.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: inputs: docker_images: - description: 'Comma-separated list of Docker images to pull' + description: '请填写docker镜像名称 多个用英文逗号分开' required: true default: 'alpine:latest,ubuntu:latest' # 设置默认的 Docker 镜像列表 @@ -26,13 +26,14 @@ jobs: done - name: Compress the TAR files - run: tar -czf images.tar.gz *-amd64.tar + run: tar -czf x86-64-images.tar.gz *-amd64.tar - name: Upload artifact uses: actions/upload-artifact@v2 with: name: docker-images-tar - path: images.tar.gz + path: x86-64-images.tar.gz + retention-days: 1 # 将保留天数设置为 1 天 最多可设置90天 - name: Clean up intermediate files run: | diff --git a/.github/workflows/arm32.yml b/.github/workflows/arm32.yml index c915c0d..999de48 100644 --- a/.github/workflows/arm32.yml +++ b/.github/workflows/arm32.yml @@ -33,6 +33,7 @@ jobs: with: name: docker-images-tar path: arm32-images.tar.gz + retention-days: 1 # 将保留天数设置为 1 天 最多可设置90天 - name: Clean up intermediate files run: | diff --git a/.github/workflows/arm64.yml b/.github/workflows/arm64.yml index a7c96ac..0bf34cd 100644 --- a/.github/workflows/arm64.yml +++ b/.github/workflows/arm64.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: inputs: docker_images: - description: 'Comma-separated list of Docker images to pull' + description: '请填写docker镜像名称 多个用英文逗号分开' required: true default: 'alpine:latest,ubuntu:latest' # 设置默认的 Docker 镜像列表 @@ -33,6 +33,7 @@ jobs: with: name: docker-images-tar path: arm64-images.tar.gz + retention-days: 1 # 将保留天数设置为 1 天 最多可设置90天 - name: Clean up intermediate files run: |