Skip to content

Commit

Permalink
Update demo-portals.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jmandel authored Feb 2, 2024
1 parent 170c3e0 commit 1dd2a20
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/demo-portals.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master

- uses: azure/docker-login@v1
with:
login-server: ${{ secrets.CONTAINER_REGISTRY }}
username: ${{ fromJSON(secrets.AZURE_CREDENTIALS).clientId }}
password: ${{ fromJSON(secrets.AZURE_CREDENTIALS).clientSecret }}

- uses: azure/aks-set-context@v1
login-server: ${{ fromJSON(secrets.AKS_2023).containerRegistry }}
username: ${{ fromJSON(secrets.AKS_2023).clientId }}
password: ${{ fromJSON(secrets.AKS_2023).clientSecret }}
- uses: azure/login@v1
with:
creds: '${{ secrets.AZURE_CREDENTIALS }}'
cluster-name: ${{ secrets.CLUSTER_NAME }}
resource-group: ${{ secrets.RESOURCE_GROUP }}

creds: ${{ secrets.AKS_2023 }}
- uses: azure/aks-set-context@v3
with:
cluster-name: ${{ fromJSON(secrets.AKS_2023).clusterName }}
resource-group: ${{ fromJSON(secrets.AKS_2023).resourceGroup }}
admin: 'true'
- name: Build and rollout to CI
working-directory: demo-portals
run: |
docker build . \
-t ${{ secrets.CONTAINER_REGISTRY }}/demo-portals:$GITHUB_SHA \
-t ${{ secrets.CONTAINER_REGISTRY }}/demo-portals:latest
docker push ${{ secrets.CONTAINER_REGISTRY }}/demo-portals
-t ${{ fromJSON(secrets.AKS_2023).containerRegistry }}/demo-portals:$GITHUB_SHA \
-t ${{ fromJSON(secrets.AKS_2023).containerRegistry }}/demo-portals:latest
docker push ${{ fromJSON(secrets.AKS_2023).containerRegistry }}/demo-portals
kubectl -n siop rollout restart deployment/demo-portals

0 comments on commit 1dd2a20

Please sign in to comment.