Skip to content

Updated actions using the latest base images and to run using Python 3.9 #147

Updated actions using the latest base images and to run using Python 3.9

Updated actions using the latest base images and to run using Python 3.9 #147

name: Publish to Docker stage
on:
pull_request:
branches:
- main
jobs:
docker-stage-push:
name: Create staging docker image
runs-on: ubuntu-latest
steps:
- name: Check out git repository
uses: actions/checkout@v4
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v8
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
if: steps.branch-name.outputs.is_default == 'false'
uses: docker/build-push-action@v6
with:
context: ./
file: ./Dockerfile
push: true
tags: "clinicalgenomics/preclinvar-stage:${{steps.branch-name.outputs.current_branch}}, clinicalgenomics/preclinvar-stage:latest"