Skip to content

Commit

Permalink
renamed refactored pipelines ADO
Browse files Browse the repository at this point in the history
  • Loading branch information
unaihuete93 committed Oct 27, 2022
1 parent cfa9c9a commit 5a5ba20
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 8 deletions.
6 changes: 4 additions & 2 deletions .ado/main-cd-web-aci.yml → .ado/eshoponweb-cd-aci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#NAME THE PIPELINE SAME AS FILE (WITHOUT ".yml")

# trigger: none
resources:
pipelines:
- pipeline: main-ci-docker-compose
source: main-ci-docker-compose # given pipeline name
- pipeline: eshoponweb-ci-dockercompose
source: eshoponweb-ci-dockercompose # given pipeline name
trigger: true
repositories:
- repository: self
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Trigger CD wehn CI executed succesfully
#NAME THE PIPELINE SAME AS FILE (WITHOUT ".yml")

# Trigger CD when CI executed succesfully
resources:
pipelines:
- pipeline: eshopweb-ci-main
source: eshopweb-ci-main # given pipeline name
- pipeline: eshoponweb-ci
source: eshoponweb-ci # given pipeline name
trigger: true


Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#NOT WORKING YET

#NAME THE PIPELINE SAME AS FILE (WITHOUT ".yml")
#locally docker compose works, deploying to Azure WebApp is succesful but something still fails

# trigger: none
resources:
- repo: self
trigger: none

variables:
tag: '$(Build.BuildId)'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
#NAME THE PIPELINE SAME AS FILE (WITHOUT ".yml")

# Docker
# Build a Docker image
# https://docs.microsoft.com/azure/devops/pipelines/languages/docker

trigger:
- main
# trigger:
# - main

resources:
- repo: self
trigger: none

variables:
tag: '$(Build.BuildId)'
Expand Down
4 changes: 3 additions & 1 deletion .ado/main-ci-mend.yml → .ado/eshoponweb-ci-mend.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#NAME THE PIPELINE SAME AS FILE (WITHOUT ".yml")
# trigger:
# - main

resources:
- repo: self

trigger: none

stages:
- stage: Build
displayName: Build .Net Core Solution
Expand Down
38 changes: 38 additions & 0 deletions .ado/eshoponweb-ci-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

resources:
- repo: self
trigger: none

stages:
- stage: Build
displayName: Build .Net Core Solution
jobs:
- job: Build
pool:
vmImage: ubuntu-latest
steps:
- task: DotNetCoreCLI@2
displayName: Restore
inputs:
command: 'restore'
projects: '**/*.sln'
feedsToUse: 'select'

- task: DotNetCoreCLI@2
displayName: Build
inputs:
command: 'build'
projects: '**/*.sln'

- task: DotNetCoreCLI@2
displayName: Test
inputs:
command: 'test'
projects: 'tests/UnitTests/*.csproj'

- task: DotNetCoreCLI@2
displayName: Publish
inputs:
command: 'publish'
publishWebProjects: true
arguments: '-o $(Build.ArtifactStagingDirectory)'
2 changes: 2 additions & 0 deletions .ado/main-ci.yml → .ado/eshoponweb-ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#NAME THE PIPELINE SAME AS FILE (WITHOUT ".yml")
# trigger:
# - main

resources:
- repo: self
trigger: none

stages:
- stage: Build
Expand Down

0 comments on commit 5a5ba20

Please sign in to comment.