Skip to content

Commit

Permalink
configure pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Skyere committed Jan 31, 2023
1 parent 350b6ac commit 6653b81
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 36 deletions.
35 changes: 0 additions & 35 deletions az-cd-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,32 +47,7 @@ stages:
azureSubscription: '$(azureSub)'
KeyVaultName: '$(azKeyVault)'
SecretsFilter: 'ftpHost, ftpUser, ftpPass'

# - task: FtpUpload@2
# displayName: Upload json to app service via FTP
# inputs:
# credentialsOption: 'inputs'
# serverUrl: '$(ftpHost)'
# username: '$(ftpUser)'
# password: '$(ftpPass)'
# filePatterns: '$(jsonFile)'
# remoteDirectory: '$(jsonLocation)'

# - task: AzureAppServiceSettings@1
# displayName: Set GOOGLE_APPLICATION_CREDENTIALS config in Azure Portal
# inputs:
# azureSubscription: '$(azureSub)'
# appName: '$(userServiceName)'
# resourceGroupName: '$(resourceGroup)'
# appSettings: |
# [
# {
# "name": "GOOGLE_APPLICATION_CREDENTIALS",
# "value": "/home$(jsonLocation)/$(jsonFile)",
# "slotSetting": false
# }
# ]

- task: Maven@3
displayName: Maven package
inputs:
Expand Down Expand Up @@ -114,7 +89,6 @@ stages:
Dockerfile: 'Dockerfile'
tags: |
$(Build.BuildId)
latest
- stage: Deploy
jobs:
Expand All @@ -135,15 +109,6 @@ stages:
downloadType: 'single'
artifactName: '$(artifactName)'
downloadPath: '$(System.ArtifactsDirectory)'

# - task: AzureRmWebAppDeployment@4
# inputs:
# azureSubscription: '$(azureSub)'
# appType: 'webAppLinux'
# WebAppName: '$(userServiceName)'
# deployToSlotOrASE: true
# ResourceGroupName: '$(resourceGroup)'
# packageForLinux: '$(System.ArtifactsDirectory)/$(artifactName)/$(userRepoName)/target/$(onbootJarName)'

- task: HelmInstaller@0
inputs:
Expand Down
2 changes: 1 addition & 1 deletion greencity-ubs-chart/templates/greencity-ubs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:

spec:
replicas: {{ .Values.deployment.replicas }}
revisionHistoryLimit: 3
revisionHistoryLimit: 2
selector:
matchLabels:
app: {{ .Release.Name }}-greencity-ubs
Expand Down

0 comments on commit 6653b81

Please sign in to comment.