Skip to content

Commit

Permalink
VIH-9698 git versioning (#558)
Browse files Browse the repository at this point in the history
* Update to git versioning, set from ci to Mainline

* removed nuget build/publish from prod release pipeline

* merged master
  • Loading branch information
will-craig authored Mar 1, 2023
1 parent 1c4ed50 commit 285694d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 61 deletions.
27 changes: 0 additions & 27 deletions azure-pipelines.sds.release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,6 @@ stages:
workingPath: $(System.DefaultWorkingDirectory)/VideoApi/VideoApi
projectName: ${{ variables.efProjectName }}
migrationsPath: VideoApi/VideoApi.DAL/Migrations

- job: Package_Nuget
displayName: "Package Nuget Packages"
steps:
- template: templates\dotnet\package-nuget-packages.yml@azTemplates
parameters:
nugetProjectPath: 'VideoApi/${{ variables.nuget_package_name }}'
vstsFeed: "${{ variables.nuget_org_name }}/${{ variables.nuget_feed_name }}"
gitVersionConfigPath: ${{ variables.git_version_config_path }}

#####################################################
# Approval Gate for EF. #############################
Expand Down Expand Up @@ -174,24 +165,6 @@ stages:
- 'latest'
- '${{ variables.releaseTagName }}'

#####################################################
# Deploy Nuget Packages. #########################
- stage: Push_Nuget
dependsOn: Approve_Helm_Release
displayName: Deploy Nuget Packages
variables:
- template: variables/production.yaml
- template: variables/shared.yaml
parameters:
env: ${{ variables.env }}
jobs:
- job: Publish_Nuget
displayName: Publish NuGet Packages
steps:
- template: templates\dotnet\push-nuget-packages.yml@azTemplates
parameters:
vstsFeed: "${{ variables.nuget_org_name }}/${{ variables.nuget_feed_name }}"

#########################################
# Push Helm Charts to Repo. #############
- stage: Helm
Expand Down
36 changes: 2 additions & 34 deletions sds-git-version-config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mode: ContinuousDelivery
mode: Mainline
ignore:
sha: []
merge-message-formats: {}
Expand All @@ -7,39 +7,7 @@ minor-version-bump-message: '\+semver:\s?(feature|minor)'
patch-version-bump-message: '\+semver:\s?(fix|patch)'
commit-message-incrementing: Enabled
branches:
main:
regex: ^origin/master$
mode: ContinuousDelivery
tag: staging
increment: Patch
source-branches: [ 'feature', 'release', 'hotfix' ]
prevent-increment-of-merged-branch-version: true
is-mainline: true
pre-release-weight: 55000
release:
regex: ^origin/releases?[/-]
mode: ContinuousDelivery
tag: ''
increment: None
source-branches: [ 'main', 'hotfix', 'release' ]
is-release-branch: true
feature:
regex: ^origin/features?[/-]$
mode: ContinuousDelivery
tag: useBranchName
increment: Patch
source-branches: [ 'pull-request', 'main', 'release', 'feature', 'hotfix' ]
pull-request:
regex: ^(pull|pull\-requests|pr)[/-]
mode: ContinuousDelivery
tag: pr-
increment: Patch
tag-number-pattern: '[/-](?<number>\d+)[-/]'
source-branches: [ 'main', 'release', 'feature', 'hotfix' ]
hotfix:
regex: ^origin/hotfix(es)?[/-]
mode: ContinuousDelivery
tag: hotfix
increment: Patch
track-merge-target: false
source-branches: [ 'pull-request', 'main', 'release' ]
tag-number-pattern: '[/-](?<number>\d+)[-/]'

0 comments on commit 285694d

Please sign in to comment.