Browse Source

Merge branch 'local' of https://github.com/uglyscorpio/eShopOnContainers into local

pull/1797/head
Deli Liu 3 years ago
parent
commit
3f16c982c2
3 changed files with 38 additions and 9 deletions
  1. +5
    -4
      build/azure-devops/multiarch.yaml
  2. +5
    -5
      build/azure-devops/webspa/azure-pipelines.yml
  3. +28
    -0
      deploy/k8s/helm/allrelated.sh

+ 5
- 4
build/azure-devops/multiarch.yaml View File

@ -17,10 +17,11 @@ jobs:
displayName: Docker Login
inputs:
command: login
# containerregistrytype: 'Container Registry'
#dockerRegistryEndpoint: ${{ parameters.registryEndpoint }}
containerRegistry: heigooRegistry
arguments: --secret username=7a304605-08fa-47e2-adea-49d529dcabc4,password=7a304605-08fa-47e2-adea-49d529dcabc4/kv59J2RHiknv-v_uLzQIj37_zHjvX4QgZ
containerregistrytype: 'Container Registry'
dockerRegistryEndpoint: ${{ parameters.registryEndpoint }}
azureContainerRegistry: ${{ parameters.registryEndpoint }}
containerRegistry: ${{ parameters.registryEndpoint }}
#arguments: --secret username=7a304605-08fa-47e2-adea-49d529dcabc4,password=7a304605-08fa-47e2-adea-49d529dcabc4/kv59J2RHiknv-v_uLzQIj37_zHjvX4QgZ
# Disabled windows deploy
# docker --config ~/.docker manifest create ${{ parameters.registry }}/${{ parameters.image }}:${{ parameters.branch }} ${{ parameters.registry }}/${{ parameters.image }}:linux-${{ parameters.branch }} ${{ parameters.registry }}/${{ parameters.image }}:win-${{ parameters.branch }}
# docker --config ~/.docker manifest create ${{ parameters.registry }}/${{ parameters.image }}:latest ${{ parameters.registry }}/${{ parameters.image }}:linux-latest ${{ parameters.registry }}/${{ parameters.image }}:win-latest


+ 5
- 5
build/azure-devops/webspa/azure-pipelines.yml View File

@ -19,8 +19,8 @@ jobs:
registryEndpoint: $(registryEndpoint)
helmfrom: $(Build.SourcesDirectory)/deploy/k8s/helm
helmto: $(Build.ArtifactStagingDirectory)/deploy/k8s/helm
- template: ../multiarch.yaml
parameters:
image: webspa
branch: $(Build.SourceBranchName)
registryEndpoint: $(registryEndpoint)
# - template: ../multiarch.yaml
# parameters:
# image: webspa
# branch: $(Build.SourceBranchName)
# registryEndpoint: $(registryEndpoint)

+ 28
- 0
deploy/k8s/helm/allrelated.sh View File

@ -245,3 +245,31 @@ az acr login --name $ACR_NAME
echo "Completed AKS Setup"
date
#######################
# Post the following JSON payload to the endpoint, sending a valid Basic Access Token
# https://dev.azure.com/{organization}/{project}/_apis/serviceendpoint/endpoints?api-version=5.1-preview.2
{
"authorization": {
"scheme": "ServicePrincipal",
"parameters": {
"loginServer": "<ACRSERVER>.azurecr.io",
"servicePrincipalId": "<APPLICATIONid OF SPN>",
"tenantId": "<TENANTID>",
"serviceprincipalkey": "<SPN kEY>"
}
},
"description": "",
"name": "Name of Connection",
"type": "dockerregistry",
"url": "https://<ACRSERVER>.azurecr.io",
"isShared": false,
"owner": "library",
"data": {
"registryId": "/subscriptions/<SUBSCRIPTIONID>/resourceGroups/<RESOURCEGROUP>/providers/Microsoft.ContainerRegistry/registries/<ACRSERVER>",
"registrytype": "ACR",
"spnObjectId": "",
"subscriptionId": "<SUBSCRIPTIONID>",
"subscriptionName": "<SUBSCRIPTIONNAME>"
}
}

Loading…
Cancel
Save