Update download-image.yml
This commit is contained in:
@@ -1,20 +1,25 @@
|
||||
name: Docker Image Downloader
|
||||
|
||||
on:
|
||||
workflow_dispatch: # 버튼을 눌러 수동 실행
|
||||
workflow_dispatch: # 수동 실행 버튼 활성화
|
||||
|
||||
jobs:
|
||||
build:
|
||||
download:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Pull and Save Docker Image
|
||||
- name: Docker Image Pull
|
||||
run: |
|
||||
# 빌드(build) 하지 않고 이미지를 바로 가져옵니다
|
||||
docker pull prom/prometheus:latest
|
||||
|
||||
- name: Docker Image Save
|
||||
run: |
|
||||
# 가져온 이미지를 tar 파일로 압축합니다
|
||||
docker save prom/prometheus:latest -o prometheus.tar
|
||||
|
||||
- name: Upload Artifact
|
||||
|
||||
- name: Upload to GitHub Artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: prometheus-image
|
||||
name: prometheus-tar-file
|
||||
path: prometheus.tar
|
||||
retention-days: 1 # 보관 기간 (최대 90일)
|
||||
retention-days: 1
|
||||
|
||||
Reference in New Issue
Block a user