Skip to content

Commit

Permalink
Vcst 488 (#675)
Browse files Browse the repository at this point in the history
feat: Update third party actions to node20
  • Loading branch information
AndrewEhlo committed Feb 29, 2024
1 parent 57ba456 commit f462409
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ jobs:
if [ ${{ github.ref }} == 'refs/heads/master' ]; then
echo "IS master branch"
echo "APP=vcptcore-qa" >> $GITHUB_OUTPUT
elif [ ${{ github.ref }} == 'refs/heads/dev' ]; then
echo "IS dev branch"
echo "APP=vcst-dev" >> $GITHUB_OUTPUT
fi
- name: Read deployment config
Expand All @@ -53,17 +56,23 @@ jobs:
deployConfigPath: ${{ github.event.inputs.deployConfigPath }}

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

- name: Update environment
- name: Update vcptcore-qa environment
if: ${{ github.ref == 'refs/heads/master' }}
run: |
vc-build CloudEnvSetParameter -EnvironmentName ${{ steps.app-name.outputs.APP }} -CloudToken ${{ secrets.VCPTCORE_PLATFORM_TOKEN }} -HelmParameters storefront.image.tag=${{ github.event.inputs.artifactUrl }}
- name: Update vcst-dev environment
if: ${{ github.ref == 'refs/heads/dev' }}
run: |
vc-build CloudEnvSetParameter -EnvironmentName ${{ steps.app-name.outputs.APP }} -CloudToken ${{ secrets.VCST_PLATFORM_TOKEN }} -HelmParameters storefront.image.tag=${{ github.event.inputs.artifactUrl }}
- name: DEPLOY_STATE::successful
if: success()
Expand All @@ -74,7 +83,7 @@ jobs:
run: echo "DEPLOY_STATE=failed" >> $GITHUB_ENV

- name: Update GitHub deployment status
uses: bobheadxi/deployments@master
uses: VirtoCommerce/vc-github-actions/gh-deployments@master
if: always()
with:
step: finish
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ jobs:

- name: Docker Login
if: ${{ env.BUILD_DOCKER == 'true' }}
uses: azure/docker-login@v1
uses: docker/login-action@v3
with:
login-server: ${{ env.PACKAGE_SERVER }}
registry: ${{ env.PACKAGE_SERVER }}
username: $GITHUB_ACTOR
password: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit f462409

Please sign in to comment.