Commit f462409 1 parent 57ba456 commit f462409 Copy full SHA for f462409
File tree 2 files changed +14
-5
lines changed
2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 43
43
if [ ${{ github.ref }} == 'refs/heads/master' ]; then
44
44
echo "IS master branch"
45
45
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
46
49
fi
47
50
48
51
- name : Read deployment config
@@ -53,17 +56,23 @@ jobs:
53
56
deployConfigPath : ${{ github.event.inputs.deployConfigPath }}
54
57
55
58
- name : Start deployment
56
- uses : bobheadxi/ deployments@master
59
+ uses : VirtoCommerce/vc-github-actions/gh- deployments@master
57
60
id : deployment
58
61
with :
59
62
step : start
60
63
token : ${{ secrets.GITHUB_TOKEN }}
61
64
env : ${{ steps.deployConfig.outputs.environmentName }}
62
65
no_override : false
63
66
64
- - name : Update environment
67
+ - name : Update vcptcore-qa environment
68
+ if : ${{ github.ref == 'refs/heads/master' }}
65
69
run : |
66
70
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 }}
67
76
68
77
- name : DEPLOY_STATE::successful
69
78
if : success()
74
83
run : echo "DEPLOY_STATE=failed" >> $GITHUB_ENV
75
84
76
85
- name : Update GitHub deployment status
77
- uses : bobheadxi/ deployments@master
86
+ uses : VirtoCommerce/vc-github-actions/gh- deployments@master
78
87
if : always()
79
88
with :
80
89
step : finish
Original file line number Diff line number Diff line change @@ -150,9 +150,9 @@ jobs:
150
150
151
151
- name : Docker Login
152
152
if : ${{ env.BUILD_DOCKER == 'true' }}
153
- uses : azure/ docker- login@v1
153
+ uses : docker/ login-action@v3
154
154
with :
155
- login-server : ${{ env.PACKAGE_SERVER }}
155
+ registry : ${{ env.PACKAGE_SERVER }}
156
156
username : $GITHUB_ACTOR
157
157
password : ${{ secrets.GITHUB_TOKEN }}
158
158
You can’t perform that action at this time.
0 commit comments