This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trigger: none | |
stages: | |
- stage: Deploy | |
jobs: | |
- deployment: DeployToAzure | |
displayName: Deploy to Azure | |
pool: | |
vmImage: 'ubuntu-latest' | |
environment: 'Production' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
issue_comment: | |
types: [created, edited] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pull Request Closed Workflow | |
on: | |
pull_request: | |
types: [closed] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- task: PowerShell@2 | |
inputs: | |
targetType: 'inline' | |
script: | | |
# Call REST API and set the result to $pr | |
$token = "{PAT}" # Replace it with your PAT | |
$token = [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes(":$($token)")) | |
$url="https://dev.azure.com/{organization}/{project}/_apis/git/pullrequests/{pull request id}?api-version=7.1-preview.1" # Replace the {} with your information | |
$head = @{ Authorization =" Basic $token" } | |
$pr = Invoke-RestMethod -Uri $url -Method Get -Headers $head -ContentType application/json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Mark stale issues and pull requests | |
uses: actions/stale@v4 | |
with: | |
days-before-stale: 60 | |
days-before-close: 7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Deploy to Kubernetes | |
uses: azure/k8s-deploy@v1 | |
with: | |
namespace: mynamespace | |
manifests: | | |
manifest1.yml | |
manifest2.yml | |
images: | | |
myimage1:$(IMAGE1_NAME) | |
myimage2:$(IMAGE2_NAME) |
NewerOlder