This repository has been archived by the owner on Oct 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 522
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: automated release using github actions
- Loading branch information
1 parent
c3c9b82
commit 5c8d0b8
Showing
11 changed files
with
193 additions
and
48 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
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 |
---|---|---|
@@ -0,0 +1,124 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*.*.*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set env | ||
run: echo "RELEASE_VERSION=${GITHUB_REF:10}" >> $GITHUB_ENV # refs/tags/v1.0.0 substring starting at v1.0.0 | ||
- name: Validate CHANGELOG # We require a pre-existing CHANGELOG specific for this release in order to proceed | ||
run: | | ||
[ -s releases/CHANGELOG-${{ env.RELEASE_VERSION }}.md ] | ||
- name: Install go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: '^1.15' | ||
- name: Install ginkgo | ||
run: go get -u github.com/onsi/ginkgo/ginkgo | ||
- name: Install helm | ||
run: | | ||
curl https://baltocdn.com/helm/signing.asc | sudo apt-key add - | ||
sudo apt-get install apt-transport-https --yes | ||
echo "deb https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list | ||
sudo apt-get update | ||
sudo apt-get install helm | ||
- name: Install k | ||
run: | | ||
sudo curl -o /usr/local/bin/k https://raw.githubusercontent.com/jakepearson/k/master/k | ||
sudo chmod +x /usr/local/bin/k | ||
- name: Build aks-engine binary | ||
run: make build-binary | ||
- name: Validate 1.18 no-egress scenario | ||
env: | ||
ORCHESTRATOR_RELEASE: "1.18" | ||
CLUSTER_DEFINITION: "examples/no_outbound.json" | ||
SUBSCRIPTION_ID: ${{ secrets.TEST_AZURE_SUB_ID }} | ||
CLIENT_ID: ${{ secrets.TEST_AZURE_SP_ID }} | ||
CLIENT_SECRET: ${{ secrets.TEST_AZURE_SP_PW }} | ||
LOCATION: "westus2" | ||
TENANT_ID: ${{ secrets.TEST_AZURE_TENANT_ID }} | ||
SKIP_LOGS_COLLECTION: true | ||
SKIP_TEST: True | ||
AZURE_CORE_ONLY_SHOW_ERRORS: True | ||
run: make test-kubernetes | ||
- name: Validate 1.19 no-egress scenario | ||
env: | ||
ORCHESTRATOR_RELEASE: "1.19" | ||
CLUSTER_DEFINITION: "examples/no_outbound.json" | ||
SUBSCRIPTION_ID: ${{ secrets.TEST_AZURE_SUB_ID }} | ||
CLIENT_ID: ${{ secrets.TEST_AZURE_SP_ID }} | ||
CLIENT_SECRET: ${{ secrets.TEST_AZURE_SP_PW }} | ||
LOCATION: "westus2" | ||
TENANT_ID: ${{ secrets.TEST_AZURE_TENANT_ID }} | ||
SKIP_LOGS_COLLECTION: true | ||
SKIP_TEST: True | ||
AZURE_CORE_ONLY_SHOW_ERRORS: True | ||
run: make test-kubernetes | ||
- name: Validate 1.20 no-egress scenario | ||
env: | ||
ORCHESTRATOR_RELEASE: "1.20" | ||
CLUSTER_DEFINITION: "examples/no_outbound.json" | ||
SUBSCRIPTION_ID: ${{ secrets.TEST_AZURE_SUB_ID }} | ||
CLIENT_ID: ${{ secrets.TEST_AZURE_SP_ID }} | ||
CLIENT_SECRET: ${{ secrets.TEST_AZURE_SP_PW }} | ||
LOCATION: "westus2" | ||
TENANT_ID: ${{ secrets.TEST_AZURE_TENANT_ID }} | ||
SKIP_LOGS_COLLECTION: true | ||
SKIP_TEST: True | ||
AZURE_CORE_ONLY_SHOW_ERRORS: True | ||
run: make test-kubernetes | ||
- name: Validate 1.21 no-egress scenario | ||
env: | ||
ORCHESTRATOR_RELEASE: "1.21" | ||
CLUSTER_DEFINITION: "examples/no_outbound.json" | ||
SUBSCRIPTION_ID: ${{ secrets.TEST_AZURE_SUB_ID }} | ||
CLIENT_ID: ${{ secrets.TEST_AZURE_SP_ID }} | ||
CLIENT_SECRET: ${{ secrets.TEST_AZURE_SP_PW }} | ||
LOCATION: "westus2" | ||
TENANT_ID: ${{ secrets.TEST_AZURE_TENANT_ID }} | ||
SKIP_LOGS_COLLECTION: true | ||
SKIP_TEST: True | ||
AZURE_CORE_ONLY_SHOW_ERRORS: True | ||
run: make test-kubernetes | ||
- name: Validate 1.20 + containerd E2E | ||
env: | ||
ORCHESTRATOR_RELEASE: "1.20" | ||
CLUSTER_DEFINITION: "examples/e2e-tests/kubernetes/release/default/definition.json" | ||
SUBSCRIPTION_ID: ${{ secrets.TEST_AZURE_SUB_ID }} | ||
CLIENT_ID: ${{ secrets.TEST_AZURE_SP_ID }} | ||
CLIENT_SECRET: ${{ secrets.TEST_AZURE_SP_PW }} | ||
LOCATION: "westus2" | ||
TENANT_ID: ${{ secrets.TEST_AZURE_TENANT_ID }} | ||
CREATE_VNET: true | ||
CLEANUP_ON_EXIT: true | ||
CLEANUP_IF_FAIL: false | ||
GINKGO_SKIP: "" | ||
STABILITY_ITERATIONS: "0" | ||
RETAIN_SSH: false | ||
CONTAINER_RUNTIME: "containerd" | ||
RUN_VMSS_NODE_PROTOTYPE: true | ||
BLOCK_SSH: false | ||
SKIP_LOGS_COLLECTION: true | ||
SKIP_TEST: true | ||
AZURE_CORE_ONLY_SHOW_ERRORS: True | ||
run: make test-kubernetes | ||
- name: Build Artifacts | ||
run: | | ||
docker run --rm \ | ||
-v ${GITHUB_WORKSPACE}:/go/src/github.com/Azure/aks-engine \ | ||
-w /go/src/github.com/Azure/aks-engine \ | ||
mcr.microsoft.com/oss/azcu/go-dev:v1.32.1 make dist | ||
- name: Publish Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: _dist/aks-engine*-*-*.* | ||
body_path: releases/CHANGELOG-${{ env.RELEASE_VERSION }}.md | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"apiVersion": "vlabs", | ||
"properties": { | ||
"masterProfile": { | ||
"count": 1, | ||
"dnsPrefix": "", | ||
"vmSize": "Standard_D2_v3" | ||
}, | ||
"agentPoolProfiles": [ | ||
{ | ||
"name": "pool1804vhd", | ||
"count": 1, | ||
"vmSize": "Standard_D2_v3", | ||
"availabilityProfile": "VirtualMachineScaleSets", | ||
"distro": "aks-ubuntu-18.04" | ||
}, | ||
{ | ||
"name": "poolwinvhd", | ||
"count": 1, | ||
"vmSize": "Standard_D2_v3", | ||
"availabilityProfile": "VirtualMachineScaleSets", | ||
"osType": "Windows" | ||
} | ||
], | ||
"linuxProfile": { | ||
"adminUsername": "azureuser", | ||
"ssh": { | ||
"publicKeys": [ | ||
{ | ||
"keyData": "" | ||
} | ||
] | ||
} | ||
}, | ||
"windowsProfile": { | ||
"adminUsername": "azureuser", | ||
"adminPassword": "replacepassword1234$", | ||
"enableAutomaticUpdates": false, | ||
"sshEnabled": true | ||
}, | ||
"featureFlags": { | ||
"BlockOutboundInternet": true | ||
} | ||
} | ||
} |
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