mirror of
https://github.com/ossrs/srs.git
synced 2025-02-15 04:42:04 +00:00
Refine 4.0 release workflow.
This commit is contained in:
parent
64c2ac8176
commit
0e68dc2939
1 changed files with 33 additions and 1 deletions
34
.github/workflows/release.yml
vendored
34
.github/workflows/release.yml
vendored
|
@ -116,6 +116,38 @@ jobs:
|
||||||
ossrs/srs:v${{ env.SRS_MAJOR }}
|
ossrs/srs:v${{ env.SRS_MAJOR }}
|
||||||
ossrs/srs:latest
|
ossrs/srs:latest
|
||||||
|
|
||||||
|
aliyun-srs:
|
||||||
|
name: aliyun-srs
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
needs:
|
||||||
|
- test
|
||||||
|
- docker-srs
|
||||||
|
|
||||||
|
steps:
|
||||||
|
##################################################################################################################
|
||||||
|
##################################################################################################################
|
||||||
|
##################################################################################################################
|
||||||
|
# Git checkout
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
# The github.ref is, for example, refs/tags/v4.0.145 or refs/tags/v4.0-r8
|
||||||
|
# Generate variables like:
|
||||||
|
# SRS_TAG=v4.0-r8
|
||||||
|
# SRS_TAG=v4.0.145
|
||||||
|
# SRS_VERSION=4.0.145
|
||||||
|
# SRS_VERSION=4.0-r8
|
||||||
|
# SRS_MAJOR=4
|
||||||
|
# @see https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable
|
||||||
|
- name: Generate varaiables
|
||||||
|
run: |
|
||||||
|
SRS_TAG=$(echo ${{ github.ref }}| awk -F '/' '{print $3}')
|
||||||
|
echo "SRS_TAG=$SRS_TAG" >> $GITHUB_ENV
|
||||||
|
SRS_VERSION=$(echo ${SRS_TAG}| sed 's/^v//g')
|
||||||
|
echo "SRS_VERSION=$SRS_VERSION" >> $GITHUB_ENV
|
||||||
|
SRS_MAJOR=$(echo $SRS_TAG| cut -c 2)
|
||||||
|
echo "SRS_MAJOR=$SRS_MAJOR" >> $GITHUB_ENV
|
||||||
|
|
||||||
# Aliyun ACR
|
# Aliyun ACR
|
||||||
- name: Login aliyun hub
|
- name: Login aliyun hub
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
|
@ -139,7 +171,7 @@ jobs:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
needs:
|
needs:
|
||||||
- test
|
- test
|
||||||
- docker-srs
|
- aliyun-srs
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
##################################################################################################################
|
##################################################################################################################
|
||||||
|
|
Loading…
Reference in a new issue