forked from robertabcd/PttChrome
-
Notifications
You must be signed in to change notification settings - Fork 4
38 lines (38 loc) · 1.39 KB
/
deploy-all-domains.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
name: Deploy to All Domains
on:
push:
branches: main-ccns.2021
schedule:
- cron: "15 21 * * Wed,Sun"
jobs:
deploy-all:
strategy:
fail-fast: false
matrix:
include:
- inputs:
CNAME: 'term.ccns.cc'
DEFAULT_SITE: 'wsstelnet://ws.ccns.cc/bbs'
DEV_PROXY_TARGET: 'https://ws.ccns.cc'
DEV_PROXY_HEADER: 'https://term.ccns.cc'
secrets-id:
deploy-token: GITHUB_TOKEN
- inputs:
CNAME: 'term.ccns.ncku.edu.tw'
DEFAULT_SITE: 'wsstelnet://ws.ccns.ncku.edu.tw/bbs'
DEV_PROXY_TARGET: 'https://ws.ccns.ncku.edu.tw'
DEV_PROXY_HEADER: 'https://term.ccns.ncku.edu.tw'
deploy-repository-name: '${{ github.repository_owner }}/term.ccns.ncku.edu.tw'
deploy-branch: main
secrets-id:
deploy-token: PTTCHROME_TOKEN
uses: ./.github/workflows/deploy-ghpage.yml
with:
CNAME: ${{ matrix.inputs.CNAME }}
DEFAULT_SITE: ${{ matrix.inputs.DEFAULT_SITE }}
DEV_PROXY_TARGET: ${{ matrix.inputs.DEV_PROXY_TARGET }}
DEV_PROXY_HEADER: ${{ matrix.inputs.DEV_PROXY_HEADER }}
deploy-repository-name: ${{ matrix.inputs.deploy-repository-name }}
deploy-branch: ${{ matrix.inputs.deploy-branch }}
secrets:
deploy-token: ${{ secrets[matrix.secrets-id.deploy-token] }}