diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index fd3f2286..8ffdbb1c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 @@ -53,7 +56,7 @@ 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 @@ -61,9 +64,15 @@ jobs: 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() @@ -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 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1c69d230..537c2eb4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 }}