-
Notifications
You must be signed in to change notification settings - Fork 122
95 lines (73 loc) · 3.09 KB
/
kubespider-deploy-test.yaml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Copyright 2022 Kubespider
# SPDX-License-Identifier: Apache-2.0
name: Kubespider deploy test
on:
pull_request:
branches: [ 'main', 'release-*' ]
jobs:
test:
runs-on: ubuntu-20.04
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v3
- name: Set Up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build images
run: |
set -x
docker buildx build --platform linux/arm64 --build-arg GIT_COMMIT=${GITHUB_SHA} -t cesign/kubespider:latest -f Dockerfile --load ./
docker buildx build --platform linux/amd64 --build-arg GIT_COMMIT=${GITHUB_SHA} -t cesign/kubespider:latest -f Dockerfile --load ./
cd downloaders/you-get
docker buildx build --platform linux/arm64 -t cesign/youget-downloader:latest -f Dockerfile --load ./
docker buildx build --platform linux/amd64 -t cesign/youget-downloader:latest -f Dockerfile --load ./
cd ../../
cd downloaders/yt-dlp
docker buildx build --platform linux/arm64 -t cesign/ytdlp-downloader:latest -f Dockerfile --load ./
docker buildx build --platform linux/amd64 -t cesign/ytdlp-downloader:latest -f Dockerfile --load ./
cd ../../
cd downloaders/tiktok-dlp
docker buildx build --platform linux/arm64 -t cesign/tiktok-dlp:latest -f Dockerfile --load ./
docker buildx build --platform linux/amd64 -t cesign/tiktok-dlp:latest -f Dockerfile --load ./
cd ../../
cd downloaders/yutto
docker buildx build --platform linux/arm64 -t cesign/yutto-downloader:latest -f Dockerfile --load ./
docker buildx build --platform linux/amd64 -t cesign/yutto-downloader:latest -f Dockerfile --load ./
cd ../../
- name: Deploy test
run: |
set -x
hack/test/deploy_test.sh
china-mainland-test:
runs-on: ubuntu-20.04
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v3
- name: Set Up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build images
run: |
set -x
docker buildx build --platform linux/amd64 --build-arg GIT_COMMIT=${GITHUB_SHA} -t registry.cn-hangzhou.aliyuncs.com/jwcesign/kubespider:latest -f Dockerfile --load ./
cd downloaders/you-get
docker buildx build --platform linux/amd64 -t cesign/youget-downloader:latest -f Dockerfile --load ./
cd ../../
cd downloaders/yt-dlp
docker buildx build --platform linux/amd64 -t cesign/ytdlp-downloader:latest -f Dockerfile --load ./
cd ../../
cd downloaders/tiktok-dlp
docker buildx build --platform linux/amd64 -t cesign/tiktok-dlp:latest -f Dockerfile --load ./
cd ../../
cd downloaders/yutto
docker buildx build --platform linux/amd64 -t cesign/yutto-downloader:latest -f Dockerfile --load ./
cd ../../
- name: China mainland deploy test
run: |
set -x
export CHINA_MAINLAND=TRUE
hack/test/deploy_test.sh