-
Notifications
You must be signed in to change notification settings - Fork 28
/
job.yml
26 lines (21 loc) · 875 Bytes
/
job.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
- job: new_backend
timeoutInMinutes: 90
steps:
- checkout: self
persistCredentials: true
clean: true
# This task enables ssh authentication.
# It keeps git permissions even after long build time.
- task: InstallSSHKey@0
inputs:
knownHostsEntry: ~/.ssh/known_hosts
sshPublicKey: $(public_deploy_key)
sshKeySecureFile: deploy_key
- script: docker build -t scoreboard/new_backend -f runtimes/new_backend/stable/Dockerfile .
displayName: 'Build docker image'
- script: . setup/git-setup.sh
displayName: 'Git setup'
- script: docker run --name new_backend --env-file setup/env.list -v `pwd`/results/new_backend/stable:/root/results scoreboard/new_backend || true
displayName: 'Run docker container'
- script: . setup/git-deploy-results.sh
displayName: 'Deploy results'