Skip to content

Docker build

Docker build #10

Workflow file for this run

name: Docker build
on:
workflow_dispatch:
#push:
# branches: [ "main" ]
#pull_request:
# branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Login to Docker Hub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build the image
run: bash ${GITHUB_WORKSPACE}/build/build_phenoRankeR_w_docker.sh
- name: push the image
run: |
version=$(ls ${GITHUB_WORKSPACE}/phenoRankeR/deploy/*.tar.gz | sed 's/.*_\(.*\)\.tar\.gz/\1/')
docker tag phenorankerui:${version} ${{ secrets.DOCKERHUB_USERNAME }}/pheno-ranker-ui:${version}
docker push ${{ secrets.DOCKERHUB_USERNAME }}/pheno-ranker-ui:${version}