-
Notifications
You must be signed in to change notification settings - Fork 6
/
azure-pipelines.yml
41 lines (32 loc) · 1.08 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
resources:
- repo: self
trigger:
- master
steps:
- script: ./cleanup.sh
displayName: Clean Up
- script: docker login -u $(gpr_user) -p $(gpr_pat) docker.pkg.github.com
displayName: Logging into GitHub Package Registry
- script: docker build -t docker.pkg.github.com/$(Build.Repository.ID)/octocat-generator:$(Build.BuildNumber) .
displayName: Building Docker image
- script: docker push docker.pkg.github.com/$(Build.Repository.ID)/octocat-generator:$(Build.BuildNumber)
displayName: Pushing Docker image to GitHub Package Repository
- task: Docker@0
displayName: Run Jekyll
inputs:
action: 'Run an image'
imageName: 'jekyll/minimal:3.8.5'
volumes: |
$(Build.SourcesDirectory):/srv/jekyll
$(Build.BinariesDirectory):/srv/jekyll/_site
containerCommand: 'jekyll build --future'
detached: false
- task: ArchiveFiles@1
displayName: Archive Files
inputs:
includeRootFolder: false
- task: PublishBuildArtifacts@1
displayName: Publish Site
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip'
ArtifactName: www