File tree Expand file tree Collapse file tree 1 file changed +62
-0
lines changed Expand file tree Collapse file tree 1 file changed +62
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Docker Image CI Muti Platform Prod
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ logLevel :
7+ description : ' Log level'
8+ required : true
9+ default : ' info'
10+ type : choice
11+ options :
12+ - info
13+ - warning
14+ - debug
15+
16+ env :
17+ APP_NAME : janus-webrtc-gateway-docker
18+ DOCKERHUB_REPO : sucwangsr/janus-webrtc-gateway-docker
19+
20+ jobs :
21+ docker :
22+ runs-on : ubuntu-latest
23+ steps :
24+ -
25+ name : Checkout
26+ uses : actions/checkout@v2
27+ -
28+ name : Set up QEMU
29+ uses : docker/setup-qemu-action@v1
30+ -
31+ name : Set up Docker Buildx
32+ uses : docker/setup-buildx-action@v1
33+ -
34+ name : Login to DockerHub
35+ uses : docker/login-action@v1
36+ with :
37+ username : ${{ secrets.HUB_USER }}
38+ password : ${{ secrets.HUB_PWD }}
39+ -
40+ name : Generate App Version
41+ run : echo APP_VERSION=`git describe --tags --always`-muti >> $GITHUB_ENV
42+ -
43+ name : Build and push
44+ uses : docker/build-push-action@v2
45+ with :
46+ context : .
47+ platforms : |
48+ linux/386
49+ linux/amd64
50+ linux/arm/v5
51+ linux/arm/v7
52+ linux/arm64
53+ linux/mips64le
54+ linux/ppc64le
55+ linux/s390x
56+ push : true
57+ build-args : |
58+ APP_NAME=${{ env.APP_NAME }}
59+ APP_VERSION=${{ env.APP_VERSION }}
60+ tags : |
61+ ${{ env.DOCKERHUB_REPO }}:latest
62+ ${{ env.DOCKERHUB_REPO }}:${{ env.APP_VERSION }}
You can’t perform that action at this time.
0 commit comments