Skip to content

Remove unnecessary check and tweak tests. #130

Remove unnecessary check and tweak tests.

Remove unnecessary check and tweak tests. #130

name: Build and publish image for branch
on:
push:
branches-ignore:
- 'master'
jobs:
docker-image-push:
runs-on: ubuntu-latest
steps:
- name: Check out git repository
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Create tags
id: create_tags
run: |
BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/} | tr "/" "-")
TAGS="clinicalgenomics/housekeeper:$BRANCH_NAME"
echo "TAGS=$TAGS" >> $GITHUB_ENV
- name: Build and Push Docker Image
uses: docker/build-push-action@v6
with:
context: ./
file: ./Dockerfile
push: true
tags: ${{ env.TAGS }}