Skip to content

Commit 0380cf9

Browse files
committed
Merge branch 'release/6.40.0'
2 parents d43e9f9 + a6af167 commit 0380cf9

File tree

5 files changed

+17
-8
lines changed

5 files changed

+17
-8
lines changed

.github/workflows/deploy.yml

+12-3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ jobs:
4343
if [ ${{ github.ref }} == 'refs/heads/master' ]; then
4444
echo "IS master branch"
4545
echo "APP=vcptcore-qa" >> $GITHUB_OUTPUT
46+
elif [ ${{ github.ref }} == 'refs/heads/dev' ]; then
47+
echo "IS dev branch"
48+
echo "APP=vcst-dev" >> $GITHUB_OUTPUT
4649
fi
4750
4851
- name: Read deployment config
@@ -53,17 +56,23 @@ jobs:
5356
deployConfigPath: ${{ github.event.inputs.deployConfigPath }}
5457

5558
- name: Start deployment
56-
uses: bobheadxi/deployments@master
59+
uses: VirtoCommerce/vc-github-actions/gh-deployments@master
5760
id: deployment
5861
with:
5962
step: start
6063
token: ${{ secrets.GITHUB_TOKEN }}
6164
env: ${{ steps.deployConfig.outputs.environmentName }}
6265
no_override: false
6366

64-
- name: Update environment
67+
- name: Update vcptcore-qa environment
68+
if: ${{ github.ref == 'refs/heads/master' }}
6569
run: |
6670
vc-build CloudEnvSetParameter -EnvironmentName ${{ steps.app-name.outputs.APP }} -CloudToken ${{ secrets.VCPTCORE_PLATFORM_TOKEN }} -HelmParameters storefront.image.tag=${{ github.event.inputs.artifactUrl }}
71+
72+
- name: Update vcst-dev environment
73+
if: ${{ github.ref == 'refs/heads/dev' }}
74+
run: |
75+
vc-build CloudEnvSetParameter -EnvironmentName ${{ steps.app-name.outputs.APP }} -CloudToken ${{ secrets.VCST_PLATFORM_TOKEN }} -HelmParameters storefront.image.tag=${{ github.event.inputs.artifactUrl }}
6776
6877
- name: DEPLOY_STATE::successful
6978
if: success()
@@ -74,7 +83,7 @@ jobs:
7483
run: echo "DEPLOY_STATE=failed" >> $GITHUB_ENV
7584

7685
- name: Update GitHub deployment status
77-
uses: bobheadxi/deployments@master
86+
uses: VirtoCommerce/vc-github-actions/gh-deployments@master
7887
if: always()
7988
with:
8089
step: finish

.github/workflows/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ jobs:
150150

151151
- name: Docker Login
152152
if: ${{ env.BUILD_DOCKER == 'true' }}
153-
uses: azure/docker-login@v1
153+
uses: docker/login-action@v3
154154
with:
155-
login-server: ${{ env.PACKAGE_SERVER }}
155+
registry: ${{ env.PACKAGE_SERVER }}
156156
username: $GITHUB_ACTOR
157157
password: ${{ secrets.GITHUB_TOKEN }}
158158

Directory.Build.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<Authors>VirtoCommerce</Authors>
88
</PropertyGroup>
99
<PropertyGroup>
10-
<VersionPrefix>6.39.0</VersionPrefix>
10+
<VersionPrefix>6.40.0</VersionPrefix>
1111
<VersionSuffix></VersionSuffix>
1212
<VersionSuffix Condition=" '$(VersionSuffix)' != '' AND '$(BuildNumber)' != '' ">$(VersionSuffix)-$(BuildNumber)</VersionSuffix>
1313
</PropertyGroup>

VirtoCommerce.Storefront/Infrastructure/Autorest/UserPasswordAuthHandler.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage
6767

6868
protected override async Task AddAuthenticationAsync(HttpRequestMessage request)
6969
{
70-
if (!request.Headers.Contains("Authorization") && !request.RequestUri.AbsoluteUri.Contains("/connect/token"))
70+
if (!request.Headers.Contains("Authorization") && !request.RequestUri.AbsoluteUri.EndsWith("/token"))
7171
{
7272
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", await GetOrRenewTokenAsync());
7373
}

VirtoCommerce.Storefront/Startup.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
439439
}));
440440

441441
app.UseWhen(
442-
context => context.Request.Path.Value.EndsWith("connect/token"),
442+
context => context.Request.Path.Value.EndsWith("/token"),
443443
appInner => appInner
444444
.RunProxy(context => context
445445
.ForwardTo(platformEndpointOptions.Url)

0 commit comments

Comments
 (0)