Skip to content

Commit

Permalink
[PAGOPA-695] fix make_release job
Browse files Browse the repository at this point in the history
  • Loading branch information
cap-ang committed Apr 28, 2023
1 parent bd91645 commit aabc732
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .devops/deploy-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,11 @@ variables:
dockerRegistryServiceConnection: $(PROD_CONTAINER_REGISTRY_SERVICE_CONN)
dockerNamespace: $(PROD_CONTAINER_NAMESPACE)


${{ if eq(variables['Build.SourceBranchName'], 'merge') }}:
SOURCE_BRANCH: "main" # force to main branch
${{ if ne(variables['Build.SourceBranchName'], 'merge') }}:
SOURCE_BRANCH: ${{ variables['Build.SourceBranchName'] }}



MAVEN_CACHE_FOLDER: $(Pipeline.Workspace)/.m2/repository
MAVEN_OPTS: "-Dmaven.repo.local=$(MAVEN_CACHE_FOLDER)"
title: ""
Expand Down Expand Up @@ -100,7 +97,7 @@ stages:
- ${{ if ne(parameters.SEMVER, 'skip') }}:
- template: templates/maven-github-release/template.yaml@pagopaCommons
parameters:
release_branch: $(sourceBranch)
release_branch: $(SOURCE_BRANCH)
gitEmail: $(GIT_EMAIL)
gitUsername: $(GIT_USERNAME)
gitHubConnection: $(GITHUB_CONNECTION)
Expand Down Expand Up @@ -173,7 +170,7 @@ stages:
slotName: production
resourceGroupName: $(RESOURCE_GROUP)
- task: AzureFunctionAppContainer@1
displayName: Deploy Function App [PROD]
displayName: Deploy Function App [PROD] staging
condition: eq('${{ parameters.ENV }}', 'prod')
inputs:
azureSubscription: $(AZURE_SUBSCRIPTION)
Expand All @@ -183,7 +180,6 @@ stages:
slotName: staging
resourceGroupName: $(RESOURCE_GROUP)


- script: |
echo "##vso[task.setvariable variable=version;isOutput=true]$(pomversion.next)"
name: dockerTag

0 comments on commit aabc732

Please sign in to comment.