mirror of
https://github.com/bluenviron/mediamtx
synced 2025-01-22 15:03:42 +00:00
optimize "release" workflow
build binaries once for both GitHub and Docker Hub
This commit is contained in:
parent
22f52b0d96
commit
1252472e05
28
.github/workflows/release.yml
vendored
28
.github/workflows/release.yml
vendored
@ -23,7 +23,7 @@ jobs:
|
||||
go mod tidy
|
||||
git diff --exit-code
|
||||
|
||||
github:
|
||||
make_binaries:
|
||||
needs: check_gortsplib
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
@ -32,6 +32,23 @@ jobs:
|
||||
|
||||
- run: make binaries
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: binaries
|
||||
path: binaries
|
||||
|
||||
github:
|
||||
needs: make_binaries
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: binaries
|
||||
path: binaries
|
||||
|
||||
- uses: actions/github-script@v6
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
@ -60,13 +77,16 @@ jobs:
|
||||
}
|
||||
|
||||
dockerhub:
|
||||
needs: check_gortsplib
|
||||
needs: make_binaries
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- run: make binaries
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: binaries
|
||||
path: binaries
|
||||
|
||||
- run: make dockerhub
|
||||
env:
|
||||
@ -74,7 +94,7 @@ jobs:
|
||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
apidocs:
|
||||
needs: check_gortsplib
|
||||
needs: make_binaries
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
steps:
|
||||
|
Loading…
Reference in New Issue
Block a user