forked from ionorg/ion
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(workflow): add test,build,docker jobs
- Loading branch information
Showing
11 changed files
with
240 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: build | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
build: | ||
name: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: build | ||
run: make build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: avp 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/avp:latest -f docker/avp.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/avp:latest pionwebrtc/ion/avp:"$TAG" | ||
env: | ||
TAG: ${{ github.event.release.tag_name }} | ||
|
||
- name: push | ||
if: github.event_name == 'release' | ||
run: docker push pionwebrtc/ion/avp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: biz 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/biz:latest -f docker/biz.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/biz:latest pionwebrtc/ion/biz:"$TAG" | ||
env: | ||
TAG: ${{ github.event.release.tag_name }} | ||
|
||
- name: push | ||
if: github.event_name == 'release' | ||
run: docker push pionwebrtc/ion/biz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
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 --tag pionwebrtc/ion/islb:latest -f docker/islb.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/islb:latest pionwebrtc/ion/islb:"$TAG" | ||
env: | ||
TAG: ${{ github.event.release.tag_name }} | ||
|
||
- name: push | ||
if: github.event_name == 'release' | ||
run: docker push pionwebrtc/ion/islb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: sfu 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 -f docker/sfu.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 pionwebrtc/ion/sfu:"$TAG" | ||
env: | ||
TAG: ${{ github.event.release.tag_name }} | ||
|
||
- name: push | ||
if: github.event_name == 'release' | ||
run: docker push pionwebrtc/ion/sfu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: test | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
test: | ||
name: test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: test | ||
run: make test | ||
|
||
- uses: codecov/codecov-action@v1 | ||
with: | ||
file: ./cover.out | ||
name: codecov-umbrella | ||
fail_ci_if_error: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.