Skip to content

Commit

Permalink
Update server.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jmandel authored May 29, 2024
1 parent 5ee8cab commit eee5223
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/server.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
name: Deploy Server to k8s
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'server/**'
# paths:
# - 'server/**'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: azure/docker-login@v1
- name: 'Az CLI login'
uses: azure/login@v1
with:
login-server: ${{ secrets.CONTAINER_REGISTRY }}
username: ${{ fromJSON(secrets.AZURE_CREDENTIALS).clientId }}
password: ${{ fromJSON(secrets.AZURE_CREDENTIALS).clientSecret }}
- uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
client-id: ${{ fromJSON(secrets.AZURE_CREDENTIALS_OIDC).clientId }}
tenant-id: ${{ fromJSON(secrets.AZURE_CREDENTIALS_OIDC).tenantId }}
subscription-id: ${{ fromJSON(secrets.AZURE_CREDENTIALS_OIDC).subscriptionId }}
- name: Login to ACR via OIDC
run: az acr login --name ${{ secrets.CONTAINER_REGISTRY }}
- uses: azure/[email protected]
with:
cluster-name: ${{ secrets.CLUSTER_NAME }}
Expand Down

0 comments on commit eee5223

Please sign in to comment.