Skip to content

Commit

Permalink
bump actions
Browse files Browse the repository at this point in the history
  • Loading branch information
buckelij committed Jun 7, 2024
1 parent 4e5877c commit 8b6c0bc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/sifio-smtp-aks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
# For more information on GitHub Actions for Azure, refer to https://github.com/Azure/Actions
# For more samples to get started with GitHub Action workflows to deploy to Azure, refer to https://github.com/Azure/actions-workflow-samples
# For more options with the actions used below please refer to https://github.com/Azure/login
#
#
# az aks create \
# --resource-group sif_group \
# --name sifio \
Expand Down Expand Up @@ -57,11 +55,11 @@ jobs:
runs-on: ubuntu-latest
steps:
# Checks out the repository this file is in
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# Logs in with your Azure credentials
- name: Azure login
uses: azure/login@v1.4.7
uses: azure/login@v2.1.1
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
Expand All @@ -80,15 +78,15 @@ jobs:
steps:
# Logs in with your Azure credentials
- name: Azure login
uses: azure/login@v1.4.7
uses: azure/login@v2.1.1
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

# Retrieves your Azure Kubernetes Service cluster's kubeconfig file
- name: Get K8s context
uses: azure/aks-set-context@v2.0
uses: azure/aks-set-context@v4.0.0
with:
resource-group: ${{ env.RESOURCE_GROUP }}
cluster-name: ${{ env.CLUSTER_NAME }}
Expand All @@ -107,7 +105,7 @@ jobs:

# Creates a kubernetes secret on your Azure Kubernetes Service cluster that matches up to the credentials from the last step
- name: Create K8s secret for pulling image from ACR
uses: Azure/k8s-create-secret@v1.1
uses: Azure/k8s-create-secret@v5.0.0
with:
container-registry-url: ${{ env.AZURE_CONTAINER_REGISTRY }}.azurecr.io
container-registry-username: ${{ steps.get-acr-creds.outputs.username }}
Expand All @@ -127,15 +125,15 @@ jobs:

# Logs in with your Azure credentials
- name: Azure login
uses: azure/login@v1.4.7
uses: azure/login@v2.1.1
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

# Retrieves your Azure Kubernetes Service cluster's kubeconfig file
- name: Get K8s context
uses: azure/aks-set-context@v2.0
uses: azure/aks-set-context@v4.0.0
with:
resource-group: ${{ env.RESOURCE_GROUP }}
cluster-name: ${{ env.CLUSTER_NAME }}
Expand All @@ -162,7 +160,7 @@ jobs:

# Deploys application based on given manifest file
- name: Deploys application
uses: Azure/k8s-deploy@v3.1
uses: Azure/k8s-deploy@5.0.0
with:
action: deploy
manifests: ${{ env.DEPLOYMENT_MANIFEST_PATH }}
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/sifio-www-aks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ jobs:
runs-on: ubuntu-latest
steps:
# Checks out the repository this file is in
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# Logs in with your Azure credentials
- name: Azure login
uses: azure/login@v1.4.7
uses: azure/login@v2.1.1
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
Expand All @@ -78,15 +78,15 @@ jobs:
steps:
# Logs in with your Azure credentials
- name: Azure login
uses: azure/login@v1.4.7
uses: azure/login@v2.1.1
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

# Retrieves your Azure Kubernetes Service cluster's kubeconfig file
- name: Get K8s context
uses: azure/aks-set-context@v2.0
uses: azure/aks-set-context@v4.0.0
with:
resource-group: ${{ env.RESOURCE_GROUP }}
cluster-name: ${{ env.CLUSTER_NAME }}
Expand All @@ -105,7 +105,7 @@ jobs:

# Creates a kubernetes secret on your Azure Kubernetes Service cluster that matches up to the credentials from the last step
- name: Create K8s secret for pulling image from ACR
uses: Azure/k8s-create-secret@v1.1
uses: Azure/k8s-create-secret@v5.0.0
with:
container-registry-url: ${{ env.AZURE_CONTAINER_REGISTRY }}.azurecr.io
container-registry-username: ${{ steps.get-acr-creds.outputs.username }}
Expand All @@ -125,15 +125,15 @@ jobs:

# Logs in with your Azure credentials
- name: Azure login
uses: azure/login@v1.4.7
uses: azure/login@v2.1.1
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

# Retrieves your Azure Kubernetes Service cluster's kubeconfig file
- name: Get K8s context
uses: azure/aks-set-context@v2.0
uses: azure/aks-set-context@v4.0.0
with:
resource-group: ${{ env.RESOURCE_GROUP }}
cluster-name: ${{ env.CLUSTER_NAME }}
Expand All @@ -144,7 +144,7 @@ jobs:

# Deploys application based on given manifest file
- name: Deploys application
uses: Azure/k8s-deploy@v3.1
uses: Azure/k8s-deploy@5.0.0
with:
action: deploy
manifests: ${{ env.DEPLOYMENT_MANIFEST_PATH }}
Expand Down

0 comments on commit 8b6c0bc

Please sign in to comment.