Skip to content

Commit

Permalink
Merge pull request #24 from pmalarme/patch-1
Browse files Browse the repository at this point in the history
Update genmanifest-createpr-template.yaml to fix the generation of manifests
  • Loading branch information
eedorenko authored Dec 5, 2023
2 parents dac74dd + 9a08de2 commit fd1099f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .pipelines/genmanifest-createpr-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ steps:
inputs:
filePath: $(utils_artifact_path)/generate-manifests.sh
arguments: '$(manifests_artifact_path) gen_manifests'
env:
AZURE_VOTE_IMAGE_REPO: $(AZ_ACR_NAME).azurecr.io/azvote

- script: git config --global user.email $PR_USER_EMAIL & git config --global user.name $PR_USER_NAME
displayName: Configure Git
Expand All @@ -38,8 +40,8 @@ steps:
git commit -m "deployment $(Build.BuildNumber)"
git push --set-upstream origin ${{ parameters.DEPLOY_BRANCH_NAME }}
echo $(System.AccessToken) | az devops login
az devops configure --defaults organization=$(System.CollectionUri) project=$(System.TeamProject) --use-git-aliases true
pr_response=$(az repos pr create --project $(System.TeamProject) --repository $(MANIFESTS_REPO) --target-branch $(MANIFESTS_BRANCH) --source-branch ${{ parameters.DEPLOY_BRANCH_NAME }} --title "deployment $(Build.BuildNumber)" --squash -o json)
az devops configure --defaults organization=$(System.CollectionUri) project="$(System.TeamProject)" --use-git-aliases true
pr_response=$(az repos pr create --project "$(System.TeamProject)" --repository $(MANIFESTS_REPO) --target-branch $(MANIFESTS_BRANCH) --source-branch ${{ parameters.DEPLOY_BRANCH_NAME }} --title "deployment $(Build.BuildNumber)" --squash -o json)
echo $pr_response
export pr_num=$(echo $pr_response | jq '.pullRequestId')
[ -z "$pr_num" ] && exit 1
Expand Down

0 comments on commit fd1099f

Please sign in to comment.