Skip to content

Commit

Permalink
Merge pull request #2031 from SwedbankPay:develop-pos
Browse files Browse the repository at this point in the history
Develop-pos
  • Loading branch information
oarset authored Nov 15, 2023
2 parents 271aefc + d69562d commit c5e5942
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/azure-production-new.yml
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
34 changes: 34 additions & 0 deletions .github/workflows/azure-stage-new.yml
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
34 changes: 34 additions & 0 deletions .github/workflows/azure-stage-pos.yml
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

0 comments on commit c5e5942

Please sign in to comment.