Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #235 from Azure/update-azure-github-actions
Browse files Browse the repository at this point in the history
Update the azure github actions in workflows
  • Loading branch information
greenie-msft authored Nov 26, 2019
2 parents 3e87a82 + 9b26b15 commit ec16163
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/bikes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
docker build samples/BikeSharingApp/Bikes/ -t ${{ secrets.CONTAINER_REGISTRY }}/bikes:$GITHUB_SHA
docker push ${{ secrets.CONTAINER_REGISTRY }}/bikes:$GITHUB_SHA
- uses: azure/k8s-actions/aks-set-context@master
- uses: azure/aks-set-context@v1
with:
creds: '${{ secrets.AZURE_CREDENTIALS }}'
cluster-name: ${{ secrets.CLUSTER_NAME }}
Expand All @@ -45,7 +45,7 @@ jobs:
azds.io/space=true \
azds.io/pull-request-space=true
- uses: azure/k8s-actions/k8s-create-secret@master
- uses: azure/k8s-create-secret@v1
with:
namespace: ${{ steps.generate-child-space-name.outputs.result }}
container-registry-url: ${{ secrets.CONTAINER_REGISTRY }}
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/bikesharing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

- uses: actions/checkout@master

- uses: azure/container-actions/docker-login@master
- uses: azure/docker-login@v1
with:
login-server: ${{ secrets.CONTAINER_REGISTRY }}
username: ${{ secrets.REGISTRY_USERNAME }}
Expand Down Expand Up @@ -43,12 +43,13 @@ jobs:
docker build samples/BikeSharingApp/Users/ -t ${{ secrets.CONTAINER_REGISTRY }}/users:$GITHUB_SHA
docker push ${{ secrets.CONTAINER_REGISTRY }}/users:$GITHUB_SHA
- uses: azure/k8s-actions/aks-set-context@master
- uses: azure/aks-set-context@v1
with:
creds: '${{ secrets.AZURE_CREDENTIALS }}'
cluster-name: ${{ secrets.CLUSTER_NAME }}
resource-group: ${{ secrets.RESOURCE_GROUP }}
- uses: azure/k8s-actions/k8s-create-secret@master

- uses: azure/k8s-create-secret@v1
with:
namespace: ${{ secrets.MASTER_SPACE }}
container-registry-url: ${{ secrets.CONTAINER_REGISTRY }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pullrequest.yml.template
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
docker build <PATH_TO_THE_DOCKERFILE>/ -t ${{ secrets.CONTAINER_REGISTRY }}/<NAME_OF_THE_SERVICE>:$GITHUB_SHA
docker push ${{ secrets.CONTAINER_REGISTRY }}/<NAME_OF_THE_SERVICE>:$GITHUB_SHA

- uses: azure/k8s-actions/aks-set-context@master
- uses: azure/aks-set-context@v1
with:
creds: '${{ secrets.AZURE_CREDENTIALS }}'
cluster-name: ${{ secrets.CLUSTER_NAME }}
Expand All @@ -63,7 +63,7 @@ jobs:
azds.io/space=true \
azds.io/pull-request-space=true

- uses: azure/k8s-actions/k8s-create-secret@master
- uses: azure/k8s-create-secret@v1
with:
namespace: ${{ steps.generate-child-space-name.outputs.result }}
container-registry-url: ${{ secrets.CONTAINER_REGISTRY }}
Expand Down

0 comments on commit ec16163

Please sign in to comment.