зеркало из https://github.com/Azure/acs-engine.git
Improve VHD VSTS pipeline output URL (#3682)
This commit is contained in:
Родитель
580a031f65
Коммит
55a9a2bceb
|
@ -25,6 +25,7 @@ phases:
|
|||
- script: |
|
||||
OS_DISK_SAS="$(cat packer-output | grep "OSDiskUriReadOnlySas:" | cut -d " " -f 2)" && \
|
||||
VHD_NAME="$(echo $OS_DISK_SAS | cut -d "/" -f 8 | cut -d "?" -f 1)" && \
|
||||
printf "COPY ME ----> ${CLASSIC_BLOB}/${VHD_NAME}?" | tee -a vhd-sas && \
|
||||
docker run --rm \
|
||||
-v ${PWD}:/go/src/github.com/Azure/acs-engine \
|
||||
-w /go/src/github.com/Azure/acs-engine \
|
||||
|
|
|
@ -14,4 +14,4 @@ az-copy: az-login
|
|||
azcopy --source "${OS_DISK_SAS}" --destination "${CLASSIC_BLOB}/${VHD_NAME}" --dest-sas "${CLASSIC_SAS_TOKEN}"
|
||||
|
||||
generate-sas: az-login
|
||||
az storage container generate-sas --name vhds --permissions lr --connection-string "${CLASSIC_SA_CONNECTION_STRING}" --start ${START_DATE} --expiry ${EXPIRY_DATE} | tee vhd-sas
|
||||
az storage container generate-sas --name vhds --permissions lr --connection-string "${CLASSIC_SA_CONNECTION_STRING}" --start ${START_DATE} --expiry ${EXPIRY_DATE} | tr -d '"' | tee -a vhd-sas && cat vhd-sas
|
|
@ -29,4 +29,4 @@ HYPERKUBE_VERSION="v1.10.5"
|
|||
HYPERKUBE_URL="k8s.gcr.io/hyperkube-amd64:${HYPERKUBE_VERSION}"
|
||||
extractHyperkube
|
||||
|
||||
echo "Install complete successfully" > /var/log/azure/golden-image-install.complete
|
||||
echo "Install completed successfully on " `date` > /var/log/azure/golden-image-install.complete
|
Загрузка…
Ссылка в новой задаче