-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
52 lines (37 loc) · 1.23 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# 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'
steps:
# - script: |
# ls -lt /
# ls -lt $(System.DefaultWorkingDirectory)/
# displayName: 'ls -lt'
# - script: |
# docker build -t gremito/lamp .
# docker run -d -p 80:80 gremito/lamp
# displayName: 'build and run'
# - script: |
# curl -i http://127.0.0.1:80/
# displayName: 'test'
- script: |
mkdir $(System.DefaultWorkingDirectory)/bin
echo 'Hello World!!\n\nver 1.0.0' >> $(System.DefaultWorkingDirectory)/bin/share.txt
cat $(System.DefaultWorkingDirectory)/bin/share.txt
cp -r $(System.DefaultWorkingDirectory)/bin $(Build.ArtifactStagingDirectory)
displayName: 'Create share.txt'
# - publish: $(System.DefaultWorkingDirectory)/bin/centos-php7-lamp
# artifact: centos-php7-lamp
- task: PublishBuildArtifacts@1
inputs:
pathToPublish: $(Build.ArtifactStagingDirectory)
artifactName: 'b-centos-php7-lamp'
publishLocation: 'Container'
- task: PublishPipelineArtifact@1
inputs:
targetPath: $(Pipeline.Workspace)
artifactName: 'p-centos-php7-lamp'