forked from tomdol/backend-scoreboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines-website.yml
45 lines (36 loc) · 1005 Bytes
/
azure-pipelines-website.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
44
45
schedules:
- cron: "0 6 * * *"
displayName: Website update
branches:
include:
- master
# Disable CI trigger (don't run on commits)
trigger: none
# and don't run on Pull Requests
pr: none
pool:
vmImage: 'ubuntu-latest'
jobs:
- job: generate_website
steps:
- checkout: self
persistCredentials: true
clean: true
- task: UsePythonVersion@0
inputs:
versionSpec: '3.10'
- task: InstallSSHKey@0
inputs:
knownHostsEntry: ~/.ssh/known_hosts
sshPublicKey: $(public_deploy_key)
sshKeySecureFile: deploy_key
- script: |
pip install --upgrade pip
pip install --upgrade -r requirements_web.txt
displayName: 'Install requirements'
- script: . setup/git-setup.sh
displayName: 'Git setup'
- script: python3 website-generator/generator.py --config ./setup/config.json
displayName: 'Generate website'
- script: . setup/git-deploy-website.sh
displayName: 'Deploy website'