forked from Azure/AgentBaker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: combine creating sku and publishing new image to PIR (Azure#559)
* publish the final windows image version during official build * Update pub tool version * create sku when not exist * Update pub tool path * Use template to create SKU and new image * Add sku and new image phase for containerd image * update naming * Update sku prefix * Determine image version by current date or from branch name * Fix toggle usage * Use release date instead of branch cut date * Add support for containerd sku and image to PIR * Remove unused script * use pipeline ID variables instead of a constant num * fix comments * Cache winzip for containerd from k8s 1.20 * Fix * Fix test * Update image version and containerd release notes
- Loading branch information
Qingchuan Hao
authored
Feb 11, 2021
1 parent
85193d6
commit ac608f7
Showing
15 changed files
with
205 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: $(Date:yyyyMMdd)$(Rev:.r)_$(Build.SourceBranchName)_$(BuildID) | ||
trigger: none | ||
|
||
variables: | ||
CONTAINER_IMAGE: 'mcr.microsoft.com/oss/azcu/go-dev:v1.28.5' | ||
|
||
phases: | ||
- phase: create_sku_and_publish_2019_image | ||
condition: eq(variables.FOR_2019, 'True') | ||
queue: | ||
name: Hosted Ubuntu 1604 | ||
timeoutInMinutes: 180 | ||
steps: | ||
- bash: | | ||
echo '##vso[task.setvariable variable=PUBLISHER]microsoft-aks' | ||
echo '##vso[task.setvariable variable=OFFER]aks-windows' | ||
echo '##vso[task.setvariable variable=CONTAINER_RUNTIME]docker' | ||
echo '##vso[task.setvariable variable=SKU_PREFIX]aks-2019-datacenter-core-smalldisk' | ||
displayName: Setup Build Variables | ||
- template: ./templates/.builder-Marketplace-win-template.yaml | ||
parameters: | ||
artifactName: 2019 | ||
- phase: create_sku_and_publish_2019_containerd_image | ||
condition: eq(variables.FOR_2019_CONTAINERD, 'True') | ||
queue: | ||
name: Hosted Ubuntu 1604 | ||
timeoutInMinutes: 180 | ||
steps: | ||
- bash: | | ||
echo '##vso[task.setvariable variable=PUBLISHER]microsoft-aks' | ||
echo '##vso[task.setvariable variable=OFFER]aks-windows' | ||
echo '##vso[task.setvariable variable=CONTAINER_RUNTIME]containerd' | ||
echo '##vso[task.setvariable variable=SKU_PREFIX]aks-2019-datacenter-core-ctrd' | ||
displayName: Setup Build Variables | ||
- template: ./templates/.builder-Marketplace-win-template.yaml | ||
parameters: | ||
artifactName: 2019-containerd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ $(LOCALBIN)/golangci-lint: | |
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(LOCALBIN) v1.21.0 | ||
|
||
$(LOCALBIN)/pub: | ||
GOBIN=$(LOCALBIN) $(GO) get github.com/devigned/pub/[email protected].3 | ||
GOBIN=$(LOCALBIN) $(GO) get github.com/devigned/pub/[email protected].6 | ||
|
||
.PHONY: reload | ||
reload: clean install | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.