-
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.
- Loading branch information
0 parents
commit 8e2092a
Showing
3 changed files
with
90 additions
and
0 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,29 @@ | ||
name-template: 'SONiC $INPUT_VERSION' | ||
|
||
template: | | ||
## General Changes | ||
$CHANGES | ||
categories: | ||
- title: '🚀 Features' | ||
labels: | ||
- 'feature' | ||
- 'enhancement' | ||
- title: '🐛 Bug Fixes' | ||
labels: | ||
- 'fix' | ||
- 'bugfix' | ||
- 'bug' | ||
|
||
version-resolver: | ||
major: | ||
labels: | ||
- 'major' | ||
minor: | ||
labels: | ||
- 'minor' | ||
patch: | ||
labels: | ||
- 'patch' | ||
default: patch |
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,58 @@ | ||
name: SONiC Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
name: Build SONiC | ||
runs-on: self-hosted | ||
|
||
steps: | ||
- name: Gain back workspace permissions # https://github.com/actions/checkout/issues/211 | ||
run: | | ||
[ -d "${GITHUB_WORKSPACE}" ] && sudo chown -R $USER:$USER ${GITHUB_WORKSPACE} | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install build requirements | ||
shell: bash | ||
run: | | ||
sudo apt install --yes j2cli | ||
sudo mkdir -p /var/cache/sonic/artifacts | ||
sudo chmod 777 /var/cache/sonic/artifacts | ||
- name: build sonic-vs | ||
shell: bash | ||
run: | | ||
git clone --recurse-submodules https://github.com/sonic-net/sonic-buildimage.git | ||
cd sonic-buildimage | ||
git checkout 202405 | ||
make init | ||
make configure PLATFORM=vs | ||
make SONIC_BUILD_JOBS=8 target/sonic-vs.img.gz | ||
ls -l target | ||
- name: Upload Release Asset | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
files: | | ||
target/sonic-vs.img.gz | ||
if: ${{ github.event_name == 'release' }} | ||
|
||
release-drafter: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: release-drafter/release-drafter@v6 | ||
with: | ||
# TODO put branch name here | ||
tag: "SONiC-${{ github.run_number }}" | ||
version: "SONiC-${{ github.run_number }}" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
if: ${{ github.event_name == 'push' }} |
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,3 @@ | ||
# SONiC Build repo for metal-stack.io | ||
|
||
From: https://support.stordis.com/hc/en-us/articles/19994539796381-How-to-build-the-community-version-of-SONiC-Virtual-Switch-SONiC-VS-image |