Skip to content

remove balsamic-qc fixture (#517) #1532

remove balsamic-qc fixture (#517)

remove balsamic-qc fixture (#517) #1532

name: Build and publish docker image on push
on: [push]
jobs:
docker-image-push:
runs-on: ubuntu-latest
steps:
- name: Check out git repository
uses: actions/checkout@v4
- name: Extract branch name and remove illegal chars
id: get_branch_name
shell: bash
run: echo "##[set-output name=branch;]$(echo "$(tr "/" "-" <<<${GITHUB_REF#refs/heads/})")"
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build web API image
uses: docker/build-push-action@v6
with:
context: ./
file: ./Dockerfile
push: true
tags: "clinicalgenomics/trailblazer-stage:${{steps.get_branch_name.outputs.branch}}, clinicalgenomics/trailblazer-stage:latest"
- name: Build CLI image
uses: docker/build-push-action@v6
with:
context: ./
file: ./Dockerfile-cli
push: true
tags: "clinicalgenomics/trailblazer-cli:${{steps.get_branch_name.outputs.branch}}"