Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
75 additions
and
9 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,29 @@ | ||
--- | ||
|
||
name: Build container for stage testing | ||
on: [push] | ||
|
||
jobs: | ||
docker-image-ci: | ||
name: Docker Image CI | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Check out git repository | ||
uses: actions/checkout@v1 | ||
|
||
- name: Get branch name | ||
uses: nelonoel/branch-name@v1.0.1 | ||
|
||
- name: Modify illegal docker names | ||
id: get_branch_name | ||
shell: bash | ||
run: echo "##[set-output name=branch;]$(echo "$(tr "/" "-" <<<$BRANCH_NAME)")" | ||
|
||
- name: Build and publish to Docker Hub | ||
uses: elgohr/Publish-Docker-Github-Action@master | ||
with: | ||
name: clinicalgenomics/niptool-stage | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
tags: "${{ steps.get_branch_name.outputs.branch }}" |
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,24 @@ | ||
--- | ||
|
||
name: Build container from latest release | ||
on: | ||
release: | ||
types: | ||
- created | ||
|
||
jobs: | ||
docker-image-CI: | ||
name: Docker Image CI | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Check out git repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build and publish to Docker Hub | ||
uses: elgohr/Publish-Docker-Github-Action@master | ||
with: | ||
name: clinicalgenomics/niptool | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
tags: "${{ github.event.release.tag_name }}, latest" |
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
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 |
---|---|---|
|
@@ -15,4 +15,5 @@ jinja2 | |
passlib | ||
fastapi | ||
uvicorn | ||
gunicorn | ||
python-jose |