mirror of
https://github.com/ossrs/srs.git
synced 2025-02-12 19:31:53 +00:00
Refine package variables. v4.0.228
This commit is contained in:
parent
8830d267f2
commit
99ff853de9
3 changed files with 7 additions and 6 deletions
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
|
@ -49,8 +49,10 @@ jobs:
|
|||
# SRS_PACKAGE_ZIP=SRS-CentOS7-x86_64-4.0.145.zip
|
||||
# SRS_PACKAGE_MD5=3880a26e30b283edf05700a4e69956e5
|
||||
- name: Create package zip
|
||||
env:
|
||||
PACKAGER: ${{ secrets.SRS_PACKAGER_BINARY }}
|
||||
run: |
|
||||
docker build --tag srs:pkg --build-arg version=$SRS_VERSION -f trunk/Dockerfile.pkg . &&
|
||||
docker build --tag srs:pkg --build-arg version=$SRS_VERSION --build-arg SRS_AUTO_PACKAGER=$PACKAGER -f trunk/Dockerfile.pkg . &&
|
||||
SRS_PACKAGE_ZIP=SRS-CentOS7-x86_64-$SRS_VERSION.zip &&
|
||||
docker run --rm -v $(pwd):/output srs:pkg cp objs/$SRS_PACKAGE_ZIP /output/ &&
|
||||
du -sh $SRS_PACKAGE_ZIP &&
|
||||
|
@ -72,9 +74,11 @@ jobs:
|
|||
# Build
|
||||
# Build SRS image
|
||||
- name: Build SRS docker image
|
||||
env:
|
||||
PACKAGER: ${{ secrets.SRS_PACKAGER_DOCKER }}
|
||||
run: |
|
||||
echo "Release ossrs/srs:$SRS_TAG"
|
||||
docker build --tag ossrs/srs:$SRS_TAG -f trunk/Dockerfile .
|
||||
docker build --tag ossrs/srs:$SRS_TAG --build-arg SRS_AUTO_PACKAGER=$PACKAGER -f trunk/Dockerfile .
|
||||
|
||||
################################################################
|
||||
# Docker
|
||||
|
|
|
@ -6,9 +6,6 @@ ARG version
|
|||
# Install depends tools.
|
||||
RUN yum install -y zip
|
||||
|
||||
# Setup the packager env.
|
||||
ENV SRS_AUTO_PACKAGER ossrs
|
||||
|
||||
# Build and install SRS.
|
||||
ADD srs-server-${version}.tar.gz /srs
|
||||
WORKDIR /srs/srs-server-${version}/trunk
|
||||
|
|
|
@ -9,6 +9,6 @@
|
|||
|
||||
#define VERSION_MAJOR 4
|
||||
#define VERSION_MINOR 0
|
||||
#define VERSION_REVISION 227
|
||||
#define VERSION_REVISION 228
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue