Skip to content

Commit

Permalink
设置保存时间1天
Browse files Browse the repository at this point in the history
  • Loading branch information
wukongdaily committed Jun 15, 2024
1 parent 34d9ae0 commit d7e0e66
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 镜像列表

Expand All @@ -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: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/arm32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 镜像列表

Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit d7e0e66

Please sign in to comment.