Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI/CD pipelines to support multiple environments #27

Merged
merged 18 commits into from
Jun 18, 2021

Conversation

julie-ng
Copy link
Collaborator

@julie-ng julie-ng commented Jun 18, 2021

Now that the project is configured to target two environments (production and dev), we need to update the CI/CD pipelines accordingly.

@julie-ng
Copy link
Collaborator Author

Pull Request Target Branch Variable

System.PullRequest.TargetBranch is only available if there is a git branch protection policy applied to that target branch

I read the Predefined Variables documentation too quickly 🤦‍♀️

System.PullRequest.TargetBranch
The branch that is the target of a pull request. For example: refs/heads/master when your repository is in Azure Repos and master when your repository is in GitHub. This variable is initialized only if the build ran because of a Git PR affected by a branch policy. This variable is only available in a YAML pipeline if the PR is affected by a branch policy.

@azure-pipelines
Copy link

⚠️  Configuration Drift Detected

Source Version: b8c209e

Approving this Pull Request may result in destructive changes to your Azure resources. Please review the terraform plan output diff at Azure Pipelines Build Result Page.

Proceed with caution!

@azure-pipelines
Copy link

🟢  No configuration drift detected

Source Version: 3c493a1

@azure-pipelines
Copy link

⚠️  Configuration Drift Detected

Source Version: fcc3ef8

Approving this Pull Request may result in destructive changes to your Azure resources. Please review the terraform plan output diff at Azure Pipelines Build Result Page.

Proceed with caution!

@azure-pipelines
Copy link

⚠️  Configuration Drift Detected (OR State File Locked)

Source Version: 0198626

Approving this Pull Request may result in destructive changes to your Azure resources. Please review the terraform plan output diff at Azure Pipelines Build Result Page.

Proceed with caution!

@azure-pipelines
Copy link

🟢  No configuration drift detected

Source Version: 3a70439

@julie-ng julie-ng merged commit 54fb1ce into main Jun 18, 2021
@julie-ng julie-ng deleted the feat/dev-pipeline branch June 18, 2021 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant