-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathazure-pipelines.yml
33 lines (28 loc) · 1004 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
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- master
pool:
vmImage: 'ubuntu-18.04'
variables:
dockerId: [email protected]
namespace: nexter
imageName: fintech # Replace with the name of the image you want to publish
dockerfile: Nexter.FinTech/Nexter.Fintech.Web.Entry/Dockerfile
registry: registry.cn-hangzhou.aliyuncs.com
steps:
- task: CmdLine@2
inputs:
script: |
echo ready to execute command
ls
sed -i 's/{ConnectionStr}/$(Writable)/g' Nexter.FinTech/Nexter.Fintech.Web.Entry/appsettings.json
echo command executed
- script: |
docker build -f $(dockerfile) -t $(imageName) .
docker login -u $(dockerId) --password $(AliyunDockerPwd) $(registry)
docker tag $(imageName) $(registry)/$(namespace)/$(imageName)
docker push $(registry)/$(namespace)/$(imageName)
displayName: push to aliyun