Skip to content

Commit

Permalink
Merge pull request #59 from zooniverse/update-az-set-context
Browse files Browse the repository at this point in the history
Update workflows to use aks-set-context@v3
  • Loading branch information
zwolf authored Apr 26, 2023
2 parents 4e88a1a + 81acd11 commit 95a4737
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/db_migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@ jobs:
- name: Checkout
uses: actions/[email protected]

- name: Set the target AKS cluster
uses: Azure/aks-set-context@v1
- uses: azure/login@v1
with:
creds: '${{ secrets.creds }}'
cluster-name: microservices
resource-group: kubernetes
creds: ${{ secrets.creds }}

- uses: azure/aks-set-context@v3
with:
resource-group: kubernetes
cluster-name: microservices

- name: Set environment variables
run: |
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/deploy_app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,14 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set the target AKS cluster
uses: Azure/aks-set-context@v1
- uses: azure/login@v1
with:
creds: '${{ secrets.creds }}'
cluster-name: microservices
resource-group: kubernetes
creds: ${{ secrets.creds }}

- uses: azure/aks-set-context@v3
with:
resource-group: kubernetes
cluster-name: microservices

- name: Get current deploy
if: ${{ inputs.deploy_check }}
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/run_task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@ jobs:
- name: Checkout
uses: actions/[email protected]

- name: Set the target AKS cluster
uses: Azure/aks-set-context@v1
- uses: azure/login@v1
with:
creds: '${{ secrets.creds }}'
cluster-name: microservices
resource-group: kubernetes
creds: ${{ secrets.creds }}

- uses: azure/aks-set-context@v3
with:
resource-group: kubernetes
cluster-name: microservices

- name: Set environment variables
run: |
Expand Down

0 comments on commit 95a4737

Please sign in to comment.