Skip to content

Commit

Permalink
fix(pipelines): remove broken bash step, clean up vars (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
julie-ng authored Nov 3, 2021
1 parent f5c5002 commit 7ba5c65
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 25 deletions.
5 changes: 2 additions & 3 deletions azure-pipelines/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ pool:

variables:
- template: vars/global.yaml
- ${{ if eq(variables['Build.SourceBranch'], 'refs/heads/main') }}:
- ${{ if eq(variables.isMain, 'True') }}:
- group: e2e-gov-demo-dev-kv
- ${{ if eq(variables['Build.SourceBranch'], 'refs/heads/production') }}:
- ${{ if eq(variables.isProduction, 'True') }}:
- group: e2e-gov-demo-kv

stages:
Expand All @@ -34,7 +34,6 @@ stages:
displayName: Terraform Plan and Apply
steps:
- template: steps/debug-vars.yaml
- template: steps/confirm-kv-loaded.yaml
- template: steps/terraform-init.yaml
- template: steps/terraform-plan.yaml
parameters:
Expand Down
1 change: 0 additions & 1 deletion azure-pipelines/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: $(BuildID)
trigger:
branches:
include:
- main
- feat/*
- fix/*
paths:
Expand Down
19 changes: 0 additions & 19 deletions azure-pipelines/steps/confirm-kv-loaded.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions azure-pipelines/steps/debug-vars.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ steps:
echo "---------"
echo "Debugging"
echo "---------"
echo "isMain: ${{ variables.isMain }}"
echo "isProduction: ${{ variables.isProduction }}"
echo "isMain: $(isMain)"
echo "isProduction: $(isProduction)"
echo "Build.SourceBranch: ${{ variables['Build.SourceBranch'] }}"
displayName: Debug - Branch Variables

0 comments on commit 7ba5c65

Please sign in to comment.