step names and registry path

This commit is contained in:
gambtho
2021-10-28 23:05:42 -04:00
parent de6c8cbcf0
commit 644f0a59aa
+14 -11
View File
@@ -42,22 +42,24 @@ jobs:
with: with:
creds: ${{ secrets.AZURE_CREDENTIALS }} creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Azure CLI script - name: Build image on ACR
uses: azure/CLI@v1 uses: azure/CLI@v1
with: with:
azcliversion: 2.29.1 azcliversion: 2.29.1
inlineScript: | inlineScript: |
az configure --defaults acr=${{ env.AZURE_CONTAINER_REGISTRY }} az configure --defaults acr=${{ env.AZURE_CONTAINER_REGISTRY }}
az acr build -t -t ${{ secrets.REGISTRY_URL }}/${{ env.PROJECT_NAME }}:${{ github.sha }} az acr build -t -t ${{ secrets.REGISTRY_URL }}/${{ env.PROJECT_NAME }}:${{ github.sha }}
- uses: azure/aks-set-context@v1 - name: Gets K8s context
with: uses: azure/aks-set-context@v1
creds: ${{ secrets.AZURE_CREDENTIALS }} with:
resource-group: ${{ env.RESOURCE_GROUP }} creds: ${{ secrets.AZURE_CREDENTIALS }}
cluster-name: ${{ env.CLUSTER_NAME }} resource-group: ${{ env.RESOURCE_GROUP }}
id: login cluster-name: ${{ env.CLUSTER_NAME }}
id: login
- uses: azure/k8s-bake@v1 - name: Configure deployment
uses: azure/k8s-bake@v1
with: with:
renderEngine: 'helm' renderEngine: 'helm'
helmChart: ${{ env.CHART_PATH }} helmChart: ${{ env.CHART_PATH }}
@@ -67,10 +69,11 @@ jobs:
helm-version: 'latest' helm-version: 'latest'
id: bake id: bake
- name: Deploys application
- uses: Azure/k8s-deploy@v1 - uses: Azure/k8s-deploy@v1
with: with:
manifests: ${{ steps.bake.outputs.manifestsBundle }} manifests: ${{ steps.bake.outputs.manifestsBundle }}
images: | images: |
${{ secrets.REGISTRY_URL }}/${{ env.PROJECT_NAME }}:${{ github.sha }} ${{ env.AZURE_CONTAINER_REGISTRY }}.azurecr.io/${{ env.PROJECT_NAME }}:${{ github.sha }}
imagepullsecrets: | imagepullsecrets: |
${{ env.PROJECT_NAME }} ${{ env.PROJECT_NAME }}