Skip to content

Commit

Permalink
Initial
Browse files Browse the repository at this point in the history
  • Loading branch information
majst01 committed Jul 14, 2024
0 parents commit 746f827
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/sonic.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Integration tests

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
- 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
- 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' }}
3 changes: 3 additions & 0 deletions README.md
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

0 comments on commit 746f827

Please sign in to comment.