Skip to content

Commit

Permalink
This works, promise!
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Kerkhove <[email protected]>
  • Loading branch information
tomkerkhove committed Aug 17, 2020
1 parent 2a131bf commit a7f9d2f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 9 deletions.
4 changes: 1 addition & 3 deletions build/azure-devops/agents-ci-discovery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,7 @@ stages:
variableName: 'Image.Tag'
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
- template: templates/determine-pr-version.yml
- template: templates/agents/prepare-ci-config.yml
parameters:
agentFolderName: 'resource-discovery'
- template: templates/agents/prepare-discovery-ci-config.yml
- ${{ if not(eq(variables['Build.Reason'], 'PullRequest')) }}:
- template: templates/build-discovery-image.yml
parameters:
Expand Down
8 changes: 2 additions & 6 deletions build/azure-devops/agents-ci-scraper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,8 @@ stages:
buildArgs: '--build-arg VERSION="$(App.Version)"'
tags: '--tag promitor-agent-scraper-ci --tag promitor-agent-scraper-ci-non-pr'
os: '$(OS.Name)'
- template: templates/agents/prepare-ci-config.yml
parameters:
agentFolderName: 'scraper'
- template: templates/agents/prepare-ci-config.yml
parameters:
agentFolderName: 'resource-discovery'
- template: templates/agents/prepare-scraper-ci-config.yml
- template: templates/agents/prepare-discovery-ci-config.yml
- template: templates/build-discovery-image.yml
parameters:
imageName: '$(Image.ResourceDiscovery.Name)'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
steps:
- powershell: |
rm $(Pipeline.Workspace)\s\config\promitor\resource-discovery\runtime.yaml
copy $(Pipeline.Workspace)\s\config\promitor\resource-discovery\ci-runtime.yaml $(Pipeline.Workspace)\s\config\promitor\resource-discovery\runtime.yaml
cat $(Pipeline.Workspace)\s\config\promitor\resource-discovery\runtime.yaml
displayName: 'Prepare Resource Discovery runtime config'
11 changes: 11 additions & 0 deletions build/azure-devops/templates/agents/prepare-scraper-ci-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
steps:
- powershell: |
rm $(Pipeline.Workspace)\s\config\promitor\scraper\runtime.yaml
copy $(Pipeline.Workspace)\s\config\promitor\scraper\ci-runtime.yaml $(Pipeline.Workspace)\s\config\promitor\scraper\runtime.yaml
cat $(Pipeline.Workspace)\s\config\promitor\scraper\runtime.yaml
displayName: 'Prepare Scraper runtime config'
- powershell: |
rm $(Pipeline.Workspace)\s\config\promitor\scraper\metrics-declaration.yaml
copy $(Pipeline.Workspace)\s\config\promitor\scraper\metrics.yaml $(Pipeline.Workspace)\s\config\promitor\scraper\metrics-declaration.yaml
cat $(Pipeline.Workspace)\s\config\promitor\scraper\metrics-declaration.yaml
displayName: 'Prepare Scraper metrics declaration config'

0 comments on commit a7f9d2f

Please sign in to comment.