Skip to content

Commit

Permalink
Rewrite workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
waeltken committed Feb 16, 2021
1 parent 107ae09 commit 711b047
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy_production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ jobs:
environment: production

steps:
- name: Checkout
- uses: actions/checkout@v2

- name: Azure login
uses: Azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

- name: deploy to Azure
- name: Deploy to Azure
uses: Azure/arm-deploy@v1
with:
scope: subscription
Expand Down
16 changes: 12 additions & 4 deletions .github/workflows/test_changeset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ jobs:
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

- uses: actions/checkout@v2
- name: Checkout main branch
uses: actions/checkout@v2
with:
ref: main

- name: deploy to Azure
- name: Deploy current main branch to Azure
uses: Azure/arm-deploy@v1
with:
scope: subscription
Expand All @@ -34,9 +35,13 @@ jobs:
serviceIPRangePrefix=10.10.
localAdminPWD=${{ secrets.LOCAL_WINDOWS_ADMIN_PASSWORD }}
- uses: actions/checkout@v2
- name: Run integration tests before update
run: echo ✅

- name: deploy to Azure
- name: Checkout pull request
uses: actions/checkout@v2

- name: Deploy changes to Azure
uses: Azure/arm-deploy@v1
with:
scope: subscription
Expand All @@ -48,3 +53,6 @@ jobs:
serviceLocation=westeurope
serviceIPRangePrefix=10.10.
localAdminPWD=${{ secrets.LOCAL_WINDOWS_ADMIN_PASSWORD }}
- name: Run integration tests again after update
run: echo ✅

0 comments on commit 711b047

Please sign in to comment.