-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2031 from SwedbankPay:develop-pos
Develop-pos
- Loading branch information
Showing
3 changed files
with
97 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Deploy to Azure Production CommonSvc | ||
on: | ||
push: | ||
branches: ['master'] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: build | ||
run: | | ||
docker compose run \ | ||
-e GITHUB_BRANCH=develop \ | ||
-e GITHUB_REPOSITORY_URL=https://github.com/SwedbankPay/developer.swedbankpay.com \ | ||
portal build \ | ||
--env=production \ | ||
--site-url=https://developer.swedbankpay.com | ||
- name: login | ||
uses: azure/[email protected] | ||
with: | ||
creds: '{"clientId":"${{ secrets.SUBSCRIPTION_CLIENT_ID_PROD }}","clientSecret":"${{ secrets.SUBSCRIPTION_CLIENT_SECRET_PROD }}","subscriptionId":"${{ secrets.SUBSCRIPTION_ID_PROD }}","tenantId":"${{ secrets.TENANT_ID }}"}' | ||
|
||
- name: deploy | ||
uses: azure/[email protected] | ||
with: | ||
inlineScript: az storage blob upload-batch -s _site -d "\$web" --account-name proddevelopersa1 --overwrite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Deploy Pos Developer Branch to Azure Stage | ||
|
||
on: | ||
push: | ||
branches: ['develop-pos'] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: jekyll build | ||
run: | | ||
docker compose run \ | ||
-e GITHUB_BRANCH=develop \ | ||
-e GITHUB_REPOSITORY_URL=https://github.com/SwedbankPay/developer.swedbankpay.com \ | ||
portal build \ | ||
--env=production \ | ||
--site-url=https://developer-pos.stage.swedbankpay.com | ||
- name: azure login | ||
uses: azure/[email protected] | ||
with: | ||
creds: '{"clientId":"${{ secrets.SUBSCRIPTION_CLIENT_ID_STAGE }}","clientSecret":"${{ secrets.SUBSCRIPTION_CLIENT_SECRET_STAGE }}","subscriptionId":"${{ secrets.SUBSCRIPTION_ID_STAGE }}","tenantId":"${{ secrets.TENANT_ID }}"}' | ||
|
||
- name: azure deploy | ||
run: | | ||
az storage blob upload-batch \ | ||
--source "_site" \ | ||
--destination "\$web" \ | ||
--account-name stagedeveloperecomsa1 \ | ||
--overwrite \ | ||
--validate-content |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Deploy Ecom Developer Branch to Azure Stage | ||
|
||
on: | ||
push: | ||
branches: ['develop-pos'] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: jekyll build | ||
run: | | ||
docker compose run \ | ||
-e GITHUB_BRANCH=develop \ | ||
-e GITHUB_REPOSITORY_URL=https://github.com/SwedbankPay/developer.swedbankpay.com \ | ||
portal build \ | ||
--env=production \ | ||
--site-url=https://developer.stage.swedbankpay.com | ||
- name: azure login | ||
uses: azure/[email protected] | ||
with: | ||
creds: '{"clientId":"${{ secrets.SUBSCRIPTION_CLIENT_ID_STAGE }}","clientSecret":"${{ secrets.SUBSCRIPTION_CLIENT_SECRET_STAGE }}","subscriptionId":"${{ secrets.SUBSCRIPTION_ID_STAGE }}","tenantId":"${{ secrets.TENANT_ID }}"}' | ||
|
||
- name: azure deploy | ||
run: | | ||
az storage blob upload-batch \ | ||
--source "_site" \ | ||
--destination "\$web" \ | ||
--account-name stagedeveloperpossa1 \ | ||
--overwrite \ | ||
--validate-content |