Skip to content

Docker build PhenoRankeR package builder #31

Docker build PhenoRankeR package builder

Docker build PhenoRankeR package builder #31

name: Docker build PhenoRankeR package builder
on:
workflow_dispatch:
#push:
# branches: [ "main" ]
#pull_request:
# branches: [ "main" ]
# TODO
# check here for docker build/push
# + https://docs.docker.com/build/ci/github-actions/cache/#github-cachecache
#
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile_package_builder
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/pheno-ranker-ui-r-package-builder:latest
cache-from: type=gha
cache-to: type=gha,mode=max