-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
35 lines (29 loc) · 1.07 KB
/
azure-pipelines.yml
File metadata and controls
35 lines (29 loc) · 1.07 KB
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
# 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-latest'
variables:
dockerId: 695979933@qq.com
namespace: fhdotnet
imageName: stackableui
registry: registry.cn-shenzhen.aliyuncs.com
dockerfilepath: samples/StackableUi.Samples/Dockerfile
steps:
- task: CmdLine@2
inputs:
script: |
echo ready to execute command
ls
sed -i 's/{Writable}/$(Writable)/g' samples/StackableUi.Samples/appsettings.Production.json
sed -i 's/{ReadOnly}/$(ReadOnly)/g' samples/StackableUi.Samples/appsettings.Production.json
echo command executed
- script: |
docker build -f $(dockerfilepath) -t $(imageName) .
docker login -u $(dockerId) -p $(pwd) $(registry)
docker tag $(imageName) $(registry)/$(namespace)/$(imageName)
docker push $(registry)/$(namespace)/$(imageName)
displayName: push to aliyun