-
-
Notifications
You must be signed in to change notification settings - Fork 235
36 lines (32 loc) · 1.01 KB
/
docker-jsonrpc.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: jsonrpc docker
on:
push:
branches:
- master
release:
types: [published]
pull_request:
branches:
- master
jobs:
build:
name: build and push
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v2
- name: build
run: docker build --tag pionwebrtc/ion-sfu:latest-jsonrpc -f cmd/signal/json-rpc/Dockerfile .
- name: login
if: github.event_name == 'release'
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: tag
if: github.event_name == 'release'
run: docker tag pionwebrtc/ion-sfu:latest-jsonrpc pionwebrtc/ion-sfu:"$TAG"-jsonrpc
env:
TAG: ${{ github.event.release.tag_name }}
- name: push
if: github.event_name == 'release'
run: docker push pionwebrtc/ion-sfu:latest-jsonrpc && docker push pionwebrtc/ion-sfu:"$TAG"-jsonrpc
env:
TAG: ${{ github.event.release.tag_name }}