Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 35 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,35 @@ jobs:
run: |
export TAG="$($HOME/.linkerd version --client --short)"
go test -cover -race -v -mod=readonly ./cni-plugin/test -integration-tests
choco_pack:
name: Pack Chocolatey release
if: startsWith(github.ref, 'refs/tags/stable')
needs: [kind_integration_tests, cloud_integration_tests]
runs-on: windows-2019
steps:
- name: Checkout code
# actions/checkout@v2
uses: actions/checkout@722adc6
- name: Chocolatey - update nuspec
run: |
$LINKERD_VERSION=$env:GITHUB_REF.Substring(17)
(Get-Content bin\win\linkerd.nuspec).replace('LINKERD_VERSION', $LINKERD_VERSION) | Set-Content bin\win\linkerd.nuspec
- name: Chocolatey - pack
# crazy-max/ghaction-chocolatey@v1.2.2
uses: crazy-max/ghaction-chocolatey@55c9188
with:
args: pack bin/win/linkerd.nuspec
- name: Chocolatey - upload package
# actions/upload-artifact@v2.01
uses: actions/upload-artifact@97b7dac
with:
name: choco
path: ./linkerd.*.nupkg
gh_release:
name: Create GH release
if: startsWith(github.ref, 'refs/tags/stable') || startsWith(github.ref, 'refs/tags/edge')
runs-on: ubuntu-18.04
needs: [kind_integration_tests, cloud_integration_tests]
needs: [choco_pack]
steps:
- name: Checkout code
# actions/checkout@v2
Expand All @@ -217,8 +241,16 @@ jobs:
. bin/_release.sh
echo ::set-env name=TAG::$(CI_FORCE_CLEAN=1 bin/root-tag)
extract_release_notes NOTES.md
- name: Download choco package
# actions/download-artifact@v1
uses: actions/download-artifact@18f0f59
with:
name: choco
- name: Pull CLI binaries
run : bin/docker-pull-binaries $TAG
run : |
bin/docker-pull-binaries $TAG
VERSION=${TAG#"stable-"}
mv choco/linkerd.*.nupkg target/release/linkerd2-cli-stable-$VERSION.nupkg || true
- name: Create release
id: create_release
# softprops/action-gh-release@v1
Expand All @@ -236,6 +268,7 @@ jobs:
./target/release/linkerd2-cli-*-linux.sha256
./target/release/linkerd2-cli-*-windows.exe
./target/release/linkerd2-cli-*-windows.exe.sha256
./target/release/linkerd2-cli-*.nupkg
website_publish:
name: Linkerd website publish
if: startsWith(github.ref, 'refs/tags/stable') || startsWith(github.ref, 'refs/tags/edge')
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/static_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,22 @@ jobs:
# https://github.com/koalaman/shellcheck/wiki/Checks
run: |
bin/shellcheck-all
psscript-analyzer:
name: PSScriptAnalyzer
runs-on: ubuntu-18.04
steps:
- name: Checkout code
# actions/checkout@v2
uses: actions/checkout@722adc6
- name: Chocolatey - lint
# devblackops/github-action-psscriptanalyzer@v2.0.0
uses: devblackops/github-action-psscriptanalyzer@889a059
env:
# https://github.com/devblackops/github-action-psscriptanalyzer/pull/3/files
INPUT_FAILONWARNING: 1
with:
rootPath: bin/win/tools
failOnInfos: true
markdown_lint:
name: Markdown lint
runs-on: ubuntu-18.04
Expand Down
6 changes: 3 additions & 3 deletions bin/win/linkerd.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>linkerd</id>
<version>${LINKERD_VERSION}</version>
<version>LINKERD_VERSION</version>

<title>Linkerd</title>
<authors>Linkerd</authors>
Expand All @@ -27,6 +27,6 @@
</metadata>

<files>
<file src="bin\win\tools\**" target="tools" />
<file src="tools\**" target="tools" />
</files>
</package>
</package>