forked from Baystation12/Baystation12
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
38 lines (31 loc) · 868 Bytes
/
azure-pipelines.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
pool:
vmImage: 'Ubuntu 18.04'
variables:
imageName: 'registry.baystation12.net/baystation12:latest'
steps:
- script: git clone https://github.com/Baystation12/custom-items
displayName: 'clone custom items'
- task: DownloadSecureFile@1
name: libbyond
inputs:
secureFile: 'libbyond.so'
- task: Bash@3
inputs:
targetType: 'inline'
script: 'cp $(libbyond.secureFilePath) . && echo "COPY libbyond.so /usr/local/byond/bin/libbyond.so" >> Dockerfile'
- task: Docker@0
displayName: 'build'
inputs:
imageName: '$(imageName)'
buildArguments: BUILD_ARGS=-Icustom-items/inc.dm
- task: Docker@1
displayName: 'registry login'
inputs:
containerregistrytype: 'Container Registry'
dockerRegistryEndpoint: 'bs12'
command: login
- task: Docker@1
displayName: 'push'
inputs:
command: 'push'
imageName: '$(imageName)'