Skip to content

Commit

Permalink
Merge branch 'release/3.203.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
vc-ci committed Dec 20, 2022
2 parents 8b38a11 + 9941a95 commit 49ffa20
Show file tree
Hide file tree
Showing 53 changed files with 2,402 additions and 1,125 deletions.
14 changes: 7 additions & 7 deletions .deployment/module/cloudDeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@
"deployRepo": "vc-deploy-dev",
"cmPath": "backend/packages.json",
"dev": {
"deployAppName": "vcplatform-dev",
"deployBranch": "dev",
"deployAppName": "vcptcore-dev",
"deployBranch": "vcptcore-dev",
"environmentId": "dev",
"environmentName": "Development",
"environmentType": "staging",
"environmentUrl": "https://vcptcore-qa.govirto.com/"
"environmentUrl": "https://vcptcore-dev.govirto.com/"
},
"qa": {
"deployAppName": "vcplatform-qa",
"deployBranch": "qa",
"deployAppName": "vcptcore-qa",
"deployBranch": "vcptcore-qa",
"environmentId": "qa",
"environmentName": "QA",
"environmentType": "testing",
"environmentUrl": "https://vcptcore-qa.govirto.com/"
},
"prod": {
"deployAppName": "vcplatform-demo",
"deployBranch": "demo",
"deployAppName": "vcptcore-demo",
"deployBranch": "vcptcore-demo",
"environmentId": "prod",
"environmentName": "Demo",
"environmentType": "production",
Expand Down
155 changes: 38 additions & 117 deletions .github/workflows/module-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# v3.200.16
# v3.200.20
name: Module CI

on:
Expand Down Expand Up @@ -47,9 +47,12 @@ jobs:

outputs:
artifactUrl: ${{ steps.artifactUrl.outputs.download_url }}
blobId: ${{ steps.blobRelease.outputs.blobId }}
jira-keys: ${{ steps.jira_keys.outputs.jira-keys }}
version: ${{ steps.artifact_ver.outputs.shortVersion }}
moduleId: ${{ steps.artifact_ver.outputs.moduleId }}
matrix: ${{ steps.deployment-matrix.outputs.matrix }}
run-e2e: ${{ steps.run-e2e.outputs.result }}

steps:

Expand Down Expand Up @@ -114,7 +117,7 @@ jobs:
uses: VirtoCommerce/vc-github-actions/publish-nuget@master

- name: Publish to Blob
if: ${{ github.ref == 'refs/heads/dev' || github.event_name == 'pull_request' || (github.event_name == 'workflow_dispatch' && github.ref != 'refs/heads/master') }}
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' || github.event_name == 'pull_request' || (github.event_name == 'workflow_dispatch' && github.ref != 'refs/heads/master') }}
id: blobRelease
uses: VirtoCommerce/vc-github-actions/publish-blob-release@master
with:
Expand Down Expand Up @@ -151,6 +154,24 @@ jobs:
echo ::set-output name=download_url::${{ steps.blobRelease.outputs.packageUrl }}
fi;
- name: Create deployment matrix
if: ${{ github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/master'}}
uses: VirtoCommerce/vc-github-actions/cloud-create-deploy-matrix@master
id: deployment-matrix
with:
deployConfigPath: '.deployment/module/cloudDeploy.json'
releaseBranch: 'master'

- name: Check commit message for version number
id: run-e2e
run: |
if [[ "${{ github.event.head_commit.message }}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]];
then
echo "::set-output name=result::false"
else
echo "::set-output name=result::true"
fi
- name: Setup Git Credentials
if: ${{ (github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/master') && github.event_name != 'workflow_dispatch' }}
uses: VirtoCommerce/vc-github-actions/setup-git-credentials-github@master
Expand All @@ -161,7 +182,7 @@ jobs:
if: ${{ (github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/master') && github.event_name != 'workflow_dispatch' }}
uses: VirtoCommerce/vc-github-actions/publish-manifest@master
with:
packageUrl: ${{ steps.blobRelease.outputs.packageUrl }}
packageUrl: ${{ steps.artifactUrl.outputs.download_url }}

- name: Update virtocommerce.com
if: ${{ github.ref == 'refs/heads/master' }}
Expand Down Expand Up @@ -209,113 +230,11 @@ jobs:
run: |
echo "Jira Upload Build Info response: ${{ steps.push_build_info_to_jira.outputs.response }}"
deploy:
if: ${{ (github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/master') && github.event_name == 'push' }}
needs: ci
runs-on: ubuntu-20.04
env:
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}
CLOUD_INSTANCE_BASE_URL: ${{secrets.CLOUD_INSTANCE_BASE_URL}}
CLIENT_ID: ${{secrets.CLIENT_ID}}
CLIENT_SECRET: ${{secrets.CLIENT_SECRET}}
DEPLOYMENT_ENV: 'dev'
SLEEP_TIME: '5m'
ARGO_SERVER: 'argo.govirto.com'

steps:
- name: Set DEPLOYMENT_ENV variable
if: ${{ github.ref == 'refs/heads/master' }}
run: echo "DEPLOYMENT_ENV=prod" >> $GITHUB_ENV

- name: Read deployment config
uses: VirtoCommerce/vc-github-actions/get-deploy-param@master
id: deployConfig
with:
envName: ${{ env.DEPLOYMENT_ENV }}
deployConfigPath: '.deployment/module/argoDeploy.json'

- name: Start deployment
uses: bobheadxi/deployments@master
id: deployment
with:
step: start
token: ${{ secrets.GITHUB_TOKEN }}
env: ${{ steps.deployConfig.outputs.environmentName }}
no_override: false

- name: Update deployment-cm
uses: VirtoCommerce/vc-github-actions/create-deploy-pr@master
with:
deployRepo: ${{ steps.deployConfig.outputs.deployRepo }}
deployBranch: ${{ steps.deployConfig.outputs.deployBranch }}
artifactKey: ${{ steps.deployConfig.outputs.artifactKey }}
artifactUrl: ${{ needs.ci.outputs.artifactUrl }}
taskNumber: 'undefined'
forceCommit: 'true'
cmPath: ${{ steps.deployConfig.outputs.cmPath }}

- name: Sleep for ${{ env.SLEEP_TIME }}
run: sleep ${{ env.SLEEP_TIME }}
shell: bash

- name: Wait for environment is up
uses: VirtoCommerce/vc-github-actions/vc-argocd-cli@master
timeout-minutes: 10
id: argocd-cli
with:
server: ${{env.ARGO_SERVER}}
username: ${{ secrets.ARGOCD_LOGIN }}
password: ${{ secrets.ARGOCD_PASSWORD }}
command: app wait ${{ steps.deployConfig.outputs.deployAppName }}

- name: DEPLOY_STATE::successful
if: success()
run: echo "DEPLOY_STATE=successful" >> $GITHUB_ENV

- name: DEPLOY_STATE::failed
if: failure()
run: echo "DEPLOY_STATE=failed" >> $GITHUB_ENV

- name: Update GitHub deployment status
uses: bobheadxi/deployments@master
if: always()
with:
step: finish
token: ${{ secrets.GITHUB_TOKEN }}
status: ${{ job.status }}
deployment_id: ${{ steps.deployment.outputs.deployment_id }}

- name: Push Deployment Info to Jira
if: ${{ env.CLOUD_INSTANCE_BASE_URL != 0 && env.CLIENT_ID != 0 && env.CLIENT_SECRET != 0 && needs.ci.outputs.jira-keys != '' && always() }}
id: push_deployment_info_to_jira
uses: HighwayThree/jira-upload-deployment-info@master
env:
CLOUD_INSTANCE_BASE_URL: ${{secrets.CLOUD_INSTANCE_BASE_URL}}
CLIENT_ID: ${{secrets.CLIENT_ID}}
CLIENT_SECRET: ${{secrets.CLIENT_SECRET}}
with:
cloud-instance-base-url: ${{ secrets.CLOUD_INSTANCE_BASE_URL }}
client-id: ${{ secrets.CLIENT_ID }}
client-secret: ${{ secrets.CLIENT_SECRET }}
deployment-sequence-number: ${{ github.run_id }}
update-sequence-number: ${{ github.run_id }}
issue-keys: ${{ needs.ci.outputs.jira-keys }}
display-name: ${{ steps.deployConfig.outputs.deployAppName }}
url: ${{ steps.deployConfig.outputs.environmentUrl }}
description: 'Deployment to the ${{ steps.deployConfig.outputs.environmentName }} environment'
last-updated: '${{github.event.head_commit.timestamp}}'
state: '${{ env.DEPLOY_STATE }}'
pipeline-id: '${{ github.repository }} ${{ github.workflow }}'
pipeline-display-name: 'Workflow: ${{ github.workflow }} (#${{ github.run_number }})'
pipeline-url: '${{github.event.repository.html_url}}/actions/runs/${{github.run_id}}'
environment-id: ${{ steps.deployConfig.outputs.environmentId }}
environment-display-name: ${{ steps.deployConfig.outputs.environmentName }}
environment-type: ${{ steps.deployConfig.outputs.environmentType }}

module-katalon-tests:
if: ${{ (github.ref == 'refs/heads/dev') && github.event_name == 'push' }}
if: ${{ ((github.ref == 'refs/heads/dev') && (github.event_name == 'push') && (needs.ci.outputs.run-e2e == 'true')) ||
(github.event_name == 'workflow_dispatch')}}
needs: 'ci'
uses: VirtoCommerce/.github/.github/workflows/e2e.yml@main
uses: VirtoCommerce/.github/.github/workflows/e2e.yml@v3.200.20
with:
katalonRepo: 'VirtoCommerce/vc-quality-gate-katalon'
katalonRepoBranch: 'dev'
Expand All @@ -324,22 +243,24 @@ jobs:
installCustomModule: 'true'
customModuleId: ${{ needs.ci.outputs.moduleId }}
customModuleUrl: ${{ needs.ci.outputs.artifactUrl }}
platformDockerTag: 'dev-linux-latest'
storefrontDockerTag: 'dev-linux-latest'
secrets:
envPAT: ${{ secrets.REPO_TOKEN }}
katalonApiKey: ${{ secrets.KATALON_API_KEY }}

deploy-cloud-demo:
if: ${{ (github.ref == 'refs/heads/master') && github.event_name == 'push' }}
deploy-cloud:
if: ${{ ((github.ref == 'refs/heads/master') ||
(github.ref == 'refs/heads/dev')) &&
github.event_name == 'push' }}
needs: ci
uses: VirtoCommerce/.github/.github/workflows/[email protected].16
uses: VirtoCommerce/.github/.github/workflows/[email protected].20
with:
releaseSource: module
releaseType: GithubReleases
moduleId: ${{ needs.ci.outputs.moduleId }}
moduleVer: ${{ needs.ci.outputs.version }}
moduleBlob: ${{ needs.ci.outputs.blobId }}
jiraKeys: ${{ needs.ci.outputs.jira-keys }}
argoServer: 'argo.virtocommerce.cloud'
matrix: '{"include":[{"envName": "prod", "confPath": ".deployment/module/cloudDeploy.json"}]}'
secrets:
envPAT: ${{ secrets.REPO_TOKEN }}
argoLogin: ${{ secrets.ARGOCD_LOGIN }}
argoPassword: ${{ secrets.ARGOCD_PASSWORD }}
matrix: '{"include":${{ needs.ci.outputs.matrix }}}'
secrets: inherit
8 changes: 4 additions & 4 deletions .github/workflows/module-release-hotfix.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# v3.200.16
# v3.200.20
name: Release hotfix

on:
Expand All @@ -12,12 +12,12 @@ on:

jobs:
test:
uses: VirtoCommerce/.github/.github/workflows/[email protected].16
uses: VirtoCommerce/.github/.github/workflows/[email protected].20
secrets:
sonarToken: ${{ secrets.SONAR_TOKEN }}

build:
uses: VirtoCommerce/.github/.github/workflows/[email protected].16
uses: VirtoCommerce/.github/.github/workflows/[email protected].20
with:
uploadPackage: 'true'
uploadDocker: 'false'
Expand All @@ -43,7 +43,7 @@ jobs:
publish-github-release:
needs:
[build, test, get-metadata]
uses: VirtoCommerce/.github/.github/workflows/[email protected].16
uses: VirtoCommerce/.github/.github/workflows/[email protected].20
with:
fullKey: ${{ needs.build.outputs.packageFullKey }}
changeLog: '${{ needs.get-metadata.outputs.changeLog }}'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish-nugets.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# v3.200.16
# v3.200.20
name: Publish nuget

on:
Expand All @@ -12,12 +12,12 @@ on:

jobs:
test:
uses: VirtoCommerce/.github/.github/workflows/[email protected].16
uses: VirtoCommerce/.github/.github/workflows/[email protected].20
secrets:
sonarToken: ${{ secrets.SONAR_TOKEN }}

build:
uses: VirtoCommerce/.github/.github/workflows/[email protected].16
uses: VirtoCommerce/.github/.github/workflows/[email protected].20
with:
uploadPackage: 'true'
uploadDocker: 'false'
Expand All @@ -28,7 +28,7 @@ jobs:
publish-nuget:
needs:
[build, test]
uses: VirtoCommerce/.github/.github/workflows/[email protected].16
uses: VirtoCommerce/.github/.github/workflows/[email protected].20
with:
fullKey: ${{ needs.build.outputs.packageFullKey }}
forceGithub: false
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# v3.200.16
# v3.200.20
name: Release

on:
workflow_dispatch:

jobs:
release:
uses: VirtoCommerce/.github/.github/workflows/[email protected].16
uses: VirtoCommerce/.github/.github/workflows/[email protected].20
secrets:
envPAT: ${{ secrets.REPO_TOKEN }}
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?><Project>
<!-- These properties will be shared for all projects -->
<PropertyGroup>
<VersionPrefix>3.202.0</VersionPrefix>
<VersionPrefix>3.203.0</VersionPrefix>
<VersionSuffix></VersionSuffix>
<VersionSuffix Condition=" '$(VersionSuffix)' != '' AND '$(BuildNumber)' != '' ">$(VersionSuffix)-$(BuildNumber)</VersionSuffix>
</PropertyGroup>
Expand Down
33 changes: 27 additions & 6 deletions VirtoCommerce.EventBusModule.sln
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30523.141
# Visual Studio Version 17
VisualStudioVersion = 17.4.33122.133
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{8F73706F-0D6A-4E50-AB78-160F32AACC1F}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{2730C95F-AA1F-4537-8999-5755B347CAA6}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VirtoCommerce.EventBusModule.Core", "src\VirtoCommerce.EventBusModule.Core\VirtoCommerce.EventBusModule.Core.csproj", "{34EA233E-B01B-4A9E-A1D6-6A238E55750A}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "VirtoCommerce.EventBusModule.Core", "src\VirtoCommerce.EventBusModule.Core\VirtoCommerce.EventBusModule.Core.csproj", "{34EA233E-B01B-4A9E-A1D6-6A238E55750A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VirtoCommerce.EventBusModule.Data", "src\VirtoCommerce.EventBusModule.Data\VirtoCommerce.EventBusModule.Data.csproj", "{8FD03302-9C39-4E46-9E5B-4D9349F0939F}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "VirtoCommerce.EventBusModule.Data", "src\VirtoCommerce.EventBusModule.Data\VirtoCommerce.EventBusModule.Data.csproj", "{8FD03302-9C39-4E46-9E5B-4D9349F0939F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VirtoCommerce.EventBusModule.Web", "src\VirtoCommerce.EventBusModule.Web\VirtoCommerce.EventBusModule.Web.csproj", "{1884F8D8-4F90-4C21-B565-5A501233309B}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "VirtoCommerce.EventBusModule.Web", "src\VirtoCommerce.EventBusModule.Web\VirtoCommerce.EventBusModule.Web.csproj", "{1884F8D8-4F90-4C21-B565-5A501233309B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VirtoCommerce.EventBusModule.Tests", "tests\VirtoCommerce.EventBusModule.Tests\VirtoCommerce.EventBusModule.Tests.csproj", "{46B3BFD8-8E38-4FD0-852E-633A8382F376}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "VirtoCommerce.EventBusModule.Tests", "tests\VirtoCommerce.EventBusModule.Tests\VirtoCommerce.EventBusModule.Tests.csproj", "{46B3BFD8-8E38-4FD0-852E-633A8382F376}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VirtoCommerce.EventBusModule.Data.SqlServer", "src\VirtoCommerce.EventBusModule.Data.SqlServer\VirtoCommerce.EventBusModule.Data.SqlServer.csproj", "{83E6040B-AF16-41D3-92E9-1752161B63FE}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VirtoCommerce.EventBusModule.Data.MySql", "src\VirtoCommerce.EventBusModule.Data.MySql\VirtoCommerce.EventBusModule.Data.MySql.csproj", "{E7D62110-9B4F-49BD-8685-4D4AFB095BC1}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VirtoCommerce.EventBusModule.Data.PostgreSql", "src\VirtoCommerce.EventBusModule.Data.PostgreSql\VirtoCommerce.EventBusModule.Data.PostgreSql.csproj", "{79497435-7D36-41D0-AC98-405D5F4350A3}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -37,6 +43,18 @@ Global
{46B3BFD8-8E38-4FD0-852E-633A8382F376}.Debug|Any CPU.Build.0 = Debug|Any CPU
{46B3BFD8-8E38-4FD0-852E-633A8382F376}.Release|Any CPU.ActiveCfg = Release|Any CPU
{46B3BFD8-8E38-4FD0-852E-633A8382F376}.Release|Any CPU.Build.0 = Release|Any CPU
{83E6040B-AF16-41D3-92E9-1752161B63FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{83E6040B-AF16-41D3-92E9-1752161B63FE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{83E6040B-AF16-41D3-92E9-1752161B63FE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{83E6040B-AF16-41D3-92E9-1752161B63FE}.Release|Any CPU.Build.0 = Release|Any CPU
{E7D62110-9B4F-49BD-8685-4D4AFB095BC1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E7D62110-9B4F-49BD-8685-4D4AFB095BC1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E7D62110-9B4F-49BD-8685-4D4AFB095BC1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E7D62110-9B4F-49BD-8685-4D4AFB095BC1}.Release|Any CPU.Build.0 = Release|Any CPU
{79497435-7D36-41D0-AC98-405D5F4350A3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{79497435-7D36-41D0-AC98-405D5F4350A3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{79497435-7D36-41D0-AC98-405D5F4350A3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{79497435-7D36-41D0-AC98-405D5F4350A3}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -46,6 +64,9 @@ Global
{8FD03302-9C39-4E46-9E5B-4D9349F0939F} = {8F73706F-0D6A-4E50-AB78-160F32AACC1F}
{1884F8D8-4F90-4C21-B565-5A501233309B} = {8F73706F-0D6A-4E50-AB78-160F32AACC1F}
{46B3BFD8-8E38-4FD0-852E-633A8382F376} = {2730C95F-AA1F-4537-8999-5755B347CAA6}
{83E6040B-AF16-41D3-92E9-1752161B63FE} = {8F73706F-0D6A-4E50-AB78-160F32AACC1F}
{E7D62110-9B4F-49BD-8685-4D4AFB095BC1} = {8F73706F-0D6A-4E50-AB78-160F32AACC1F}
{79497435-7D36-41D0-AC98-405D5F4350A3} = {8F73706F-0D6A-4E50-AB78-160F32AACC1F}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {7B210E9B-6F7E-46A8-9BCE-895F06B1D01A}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ public static TResult[] GetObjectsWithDerived<TResult>(this IEvent obj)

return result.ToArray();
}
}
}
}
Loading

0 comments on commit 49ffa20

Please sign in to comment.