-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (35 loc) · 1.02 KB
/
mp.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: mp
on:
repository_dispatch:
workflow_dispatch:
inputs:
ssh:
description: 'SSH connection to Actions'
required: false
default: 'false'
jobs:
download_and_upload:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Docker
uses: docker/setup-qemu-action@v2
with:
platforms: arm64, amd64
- name: Download Docker image
run: |
# Pull the specified Docker image (替换成你要的镜像名称)
docker pull jxxghp/moviepilot:2.0.0-alpha
- name: Save Docker image to tar
run: |
# 将镜像保存为 tar 文件
docker save jxxghp/moviepilot:2.0.0-alpha -o mp2.tar
- name: Compress the Docker image
run: |
# 压缩镜像文件以减少上传大小
tar -czvf mp2.tar.gz mp2.tar
- name: Install wetransfer
run: |
# 下载并安装 file-transfer 工具到当前目录
run: curl -fsSL git.io/file-transfer | sh