Skip to content

Commit

Permalink
Add release assets for Windows (antrea-io#1061) (antrea-io#1061)
Browse files Browse the repository at this point in the history
Add following files in release assets for Windows:
- antrea-agent-windows-x86_64.exe
- antrea-cni-windows-x86_64.exe
- Start.ps1: The script can be used to install antrea-agent and
  start it as process manually on Windows worker node.

Signed-off-by: Rui Cao <rcao@vmware.com>
  • Loading branch information
ruicao93 authored and GraysonWu committed Sep 18, 2020
1 parent 50bb0bb commit c00cfd1
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/upload_release_assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,3 +160,30 @@ jobs:
asset_path: ./assets/antrea-windows.yml
asset_name: antrea-windows.yml
asset_content_type: application/octet-stream
- name: Upload antrea-agent-windows-x86_64.exe
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./assets/antrea-agent.exe
asset_name: antrea-agent-windows-x86_64.exe
asset_content_type: application/octet-stream
- name: Upload antrea-cni-windows-x86_64.exe
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./assets/antrea-cni.exe
asset_name: antrea-cni-windows-x86_64.exe
asset_content_type: application/octet-stream
- name: Upload Start.ps1
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./assets/Start.ps1
asset_name: Start.ps1
asset_content_type: application/octet-stream
3 changes: 3 additions & 0 deletions hack/release/prepare-assets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ for build in "${ANTREA_BUILDS[@]}"; do
BINDIR="$OUTPUT_DIR" make antrea-octant-plugin-release && cd ../..
done

BINDIR="$OUTPUT_DIR" make windows-bin
sed "s/AntreaVersion=\"latest\"/AntreaVersion=\"$VERSION\"/" ./hack/windows/Start.ps1 > "$OUTPUT_DIR"/Start.ps1

export IMG_TAG=$VERSION

export IMG_NAME=antrea/antrea-ubuntu
Expand Down

0 comments on commit c00cfd1

Please sign in to comment.