Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add legacy otn vs image build flow, fix openssh version and compile e… #5

Merged
merged 1 commit into from
Nov 3, 2023
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
40 changes: 40 additions & 0 deletions .github/workflows/otn-legacy-vs-image-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: otn-legacy-vs-build

on:
push:
branches: [ "otn_legacy" ]
pull_request:
branches: [ "otn_legacy" ]
workflow_dispatch:

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: sonic-otn-server

steps:
- uses: actions/checkout@v3
with:
path: legacy_${{github.run_number}}

- name: build
run: |
cd legacy_${{github.run_number}}
make init
make configure PLATFORM=vs
export USERNAME=root
export PASSWORD=root
export CLIUSER=admin
export CLIUSER_PASSWORD=admin
BUILD_MULTIASIC_KVM=y make target/sonic-vs.img.gz

- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
name: otn-legacy-artifact
path: |
legacy_${{github.run_number}}/sonic-installer.img
legacy_${{github.run_number}}/target/*.img.gz
27 changes: 0 additions & 27 deletions .github/workflows/otn-vs-image-build.yml

This file was deleted.

6 changes: 3 additions & 3 deletions build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,9 @@ sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y in
tcpdump \
dbus \
ntpstat \
openssh-server \
openssh-sftp-server=1:7.9p1-10+deb10u2 \
openssh-client=1:7.9p1-10+deb10u2 \
openssh-server=1:7.9p1-10+deb10u2 \
python \
python-apt \
traceroute \
Expand Down Expand Up @@ -488,8 +490,6 @@ done < files/image_config/sysctl/sysctl-net.conf
sudo augtool --autosave "$sysctl_net_cmd_string" -r $FILESYSTEM_ROOT

# Upgrade pip via PyPI and uninstall the Debian version
sudo chroot $FILESYSTEM_ROOT pip3 config set global.index-url http://mirrors.aliyun.com/pypi/simple
sudo chroot $FILESYSTEM_ROOT pip3 config set install.trusted-host mirrors.aliyun.com
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip3 install --upgrade pip
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get purge -y python-pip python3-pip

Expand Down