forked from ionorg/ion-sfu
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 1015 Bytes
/
docker-grpc.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: grpc 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-grpc -f cmd/signal/grpc/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-grpc pionwebrtc/ion-sfu:"$TAG"-grpc
env:
TAG: ${{ github.event.release.tag_name }}
- name: push
if: github.event_name == 'release'
run: docker push pionwebrtc/ion-sfu:latest-grpc && docker push pionwebrtc/ion-sfu:"$TAG"-grpc
env:
TAG: ${{ github.event.release.tag_name }}