Skip to content

Update issue templates #1142

Update issue templates

Update issue templates #1142

Workflow file for this run

name: Test for upgrading
on:
push:
branches: [main]
jobs:
test-release-4-3-latest:
name: Upgrade 4.3 to latest
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
# See https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches
fetch-depth: 0
# See https://github.com/actions/setup-node
- name: Setup the npm node
uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'npm'
cache-dependency-path: |
platform/ui/package-lock.json
- name: Discover upgrade target.
run: |
TARGET=$(cat releases/version.go |grep 'const latest' |awk -F '"' '{print $2}')
echo "TARGET=$TARGET" >> $GITHUB_ENV
- name: Setup the service
run: |
sudo make install
sudo ln -sf /usr/local/srs-cloud/usr/lib/systemd/system/srs-cloud.service /usr/lib/systemd/system/srs-cloud.service
sudo systemctl enable srs-cloud nginx
echo "Disable docker for test"
echo "USE_DOCKER=false" >> $GITHUB_ENV
echo "SRS_DOCKER=srs" >> $GITHUB_ENV
echo "SRS_UTEST=true" >> $GITHUB_ENV
- name: Mock the environments for upgrading
run: |
echo 'REGION=ap-singapore' >> mgmt/.env
echo 'SOURCE=github' >> mgmt/.env
- name: Upgrade to latest
run: |
sudo systemctl start nginx
echo "Build latest version mgmt"
(cd mgmt && make)
echo "Reset to release 4-3 at v1.0.162"
git reset --hard v1.0.162
cd mgmt && npm install
# See https://stackoverflow.com/a/8633575/17679565
echo "Upgrade to latest TARGET=$TARGET SRS_UTEST=$SRS_UTEST"
sudo -E bash -c "./upgrade $TARGET"
test-release-4-4-latest:
name: Upgrade 4.4 to latest
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
# See https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches
fetch-depth: 0
# See https://github.com/actions/setup-node
- name: Setup the npm node
uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'npm'
cache-dependency-path: |
platform/ui/package-lock.json
- name: Discover upgrade target.
run: |
TARGET=$(cat releases/version.go |grep 'const latest' |awk -F '"' '{print $2}')
echo "TARGET=$TARGET" >> $GITHUB_ENV
- name: Setup the service
run: |
sudo make install
sudo ln -sf /usr/local/srs-cloud/usr/lib/systemd/system/srs-cloud.service /usr/lib/systemd/system/srs-cloud.service
sudo systemctl enable srs-cloud nginx
echo "Disable docker for test"
echo "USE_DOCKER=false" >> $GITHUB_ENV
echo "SRS_DOCKER=srs" >> $GITHUB_ENV
echo "SRS_UTEST=true" >> $GITHUB_ENV
- name: Mock the environments for upgrading
run: |
echo 'REGION=ap-singapore' >> mgmt/.env
echo 'SOURCE=github' >> mgmt/.env
- name: Upgrade to latest
run: |
sudo systemctl start nginx
echo "Build latest version mgmt"
(cd mgmt && make)
echo "Reset to release 4-4 at v1.0.200"
git reset --hard v1.0.200
cd mgmt && npm install
# See https://stackoverflow.com/a/8633575/17679565
echo "Upgrade to latest TARGET=$TARGET SRS_UTEST=$SRS_UTEST"
sudo -E bash -c "./upgrade $TARGET"
# Note that from 4.5, we do not use stable now, only support latest version.
test-release-4-5-latest:
name: Upgrade 4.5 to latest
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
# See https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches
fetch-depth: 0
# See https://github.com/actions/setup-node
- name: Setup the npm node
uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'npm'
cache-dependency-path: |
platform/ui/package-lock.json
- name: Discover upgrade target.
run: |
TARGET=$(cat releases/version.go |grep 'const latest' |awk -F '"' '{print $2}')
echo "TARGET=$TARGET" >> $GITHUB_ENV
- name: Setup the service
run: |
sudo make install
sudo ln -sf /usr/local/srs-cloud/usr/lib/systemd/system/srs-cloud.service /usr/lib/systemd/system/srs-cloud.service
sudo systemctl enable srs-cloud nginx
echo "Disable docker for test"
echo "USE_DOCKER=false" >> $GITHUB_ENV
echo "SRS_DOCKER=srs" >> $GITHUB_ENV
echo "SRS_UTEST=true" >> $GITHUB_ENV
- name: Mock the environments for upgrading
run: |
echo 'REGION=ap-singapore' >> mgmt/.env
echo 'SOURCE=github' >> mgmt/.env
- name: Upgrade to latest
run: |
sudo systemctl start nginx
echo "Build latest version mgmt"
(cd mgmt && make)
echo "Reset to release 4-5 at v1.0.240"
git reset --hard v1.0.240
cd mgmt && npm install
# See https://stackoverflow.com/a/8633575/17679565
echo "Upgrade to latest TARGET=$TARGET SRS_UTEST=$SRS_UTEST"
sudo -E bash -c "./upgrade $TARGET"
# Note that from 4.5, we do not use stable now, only support latest version.
test-release-4-6-latest:
name: Upgrade 4.6 to latest
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
# See https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches
fetch-depth: 0
# See https://github.com/actions/setup-node
- name: Setup the npm node
uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'npm'
cache-dependency-path: |
platform/ui/package-lock.json
- name: Discover upgrade target.
run: |
TARGET=$(cat releases/version.go |grep 'const latest' |awk -F '"' '{print $2}')
echo "TARGET=$TARGET" >> $GITHUB_ENV
- name: Setup the service
run: |
sudo make install
sudo ln -sf /usr/local/srs-cloud/usr/lib/systemd/system/srs-cloud.service /usr/lib/systemd/system/srs-cloud.service
sudo systemctl enable srs-cloud nginx
echo "Disable docker for test"
echo "USE_DOCKER=false" >> $GITHUB_ENV
echo "SRS_DOCKER=srs" >> $GITHUB_ENV
echo "SRS_UTEST=true" >> $GITHUB_ENV
- name: Mock the environments for upgrading
run: |
echo 'REGION=ap-singapore' >> mgmt/.env
echo 'SOURCE=github' >> mgmt/.env
- name: Upgrade to latest
run: |
sudo systemctl start nginx
echo "Build latest version mgmt"
(cd mgmt && make)
echo "Reset to release 4-6 at v1.0.256"
git reset --hard v1.0.256
cd mgmt && npm install
# See https://stackoverflow.com/a/8633575/17679565
echo "Upgrade to latest TARGET=$TARGET SRS_UTEST=$SRS_UTEST"
sudo -E bash -c "./upgrade $TARGET"