mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
83 lines
2.3 KiB
YAML
83 lines
2.3 KiB
YAML
name: '$(Major).$(Minor).$(Patch)-$(SourceBranchName)'
|
|
|
|
trigger:
|
|
branches:
|
|
include:
|
|
- '*'
|
|
|
|
variables:
|
|
# Major Version einstellen
|
|
- name: 'Major'
|
|
value: '1'
|
|
# Minor Version einstellen
|
|
- name: 'Minor'
|
|
value: '0'
|
|
- name: 'Patch'
|
|
value: "$[counter(format('{0}.{1}', variables['Major'], variables['Minor']),400)]"
|
|
|
|
jobs:
|
|
- job: cibuild_debug
|
|
displayName: ISAClient CI Debug
|
|
pool:
|
|
name: 'Default'
|
|
demands:
|
|
- Agent.OS -equals Linux
|
|
- docker
|
|
steps:
|
|
- task: Docker@2
|
|
displayName: 'build ISAClient Debug'
|
|
inputs:
|
|
containerRegistry: 'Harbor isa'
|
|
repository: isa/ui
|
|
command: 'build'
|
|
Dockerfile: Dockerfile
|
|
buildContext:
|
|
tags: 'debug-$(Build.BuildNumber)-$(Build.SourceVersion)'
|
|
arguments: '--no-cache'
|
|
|
|
- task: Docker@2
|
|
displayName: 'push ISAClient Debug'
|
|
inputs:
|
|
containerRegistry: 'Harbor isa'
|
|
repository: 'isa/ui'
|
|
command: 'push'
|
|
tags: 'debug-$(Build.BuildNumber)-$(Build.SourceVersion)'
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
displayName: 'Artefakt veröffentlichen: HelmValues'
|
|
inputs:
|
|
PathtoPublish: helmvalues
|
|
ArtifactName: HelmValues
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
displayName: 'Artefakt veröffentlichen: ISAClientConfigs'
|
|
inputs:
|
|
PathtoPublish: 'apps/sales/src/assets/config'
|
|
ArtifactName: SalesConfigs
|
|
|
|
- job: cibuild_prod
|
|
displayName: ISAClient CI Prod
|
|
pool:
|
|
name: 'Default'
|
|
demands:
|
|
- Agent.OS -equals Linux
|
|
- docker
|
|
steps:
|
|
- task: Docker@2
|
|
displayName: 'build ISAClient Prod'
|
|
inputs:
|
|
containerRegistry: 'Harbor isa'
|
|
repository: isa/ui
|
|
command: 'build'
|
|
Dockerfile: Dockerfile
|
|
buildContext:
|
|
tags: 'prod-$(Build.BuildNumber)-$(Build.SourceVersion)'
|
|
arguments: '--no-cache --build-arg IS_PRODUCTION=true'
|
|
|
|
- task: Docker@2
|
|
displayName: 'push ISAClient Prod'
|
|
inputs:
|
|
containerRegistry: 'Harbor isa'
|
|
repository: 'isa/ui'
|
|
command: 'push'
|
|
tags: 'prod-$(Build.BuildNumber)-$(Build.SourceVersion)' |