forked from ionorg/ion
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 996 Bytes
/
docker-islb.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
37
38
name: islb 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 --no-cache --tag pionwebrtc/ion:latest-islb -f docker/islb.Dockerfile .
- name: login
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:latest-islb pionwebrtc/ion:"$TAG"-islb
env:
TAG: ${{ github.event.release.tag_name }}
- name: push
if: github.event_name == 'release'
run: docker push pionwebrtc/ion:"$TAG"-islb
env:
TAG: ${{ github.event.release.tag_name }}
- name: push-master
run: docker push pionwebrtc/ion:latest-islb