Skip to content

add pool_recycle argument #296

add pool_recycle argument

add pool_recycle argument #296

---
name: Build and publish docker image on push
on: [push]
jobs:
docker-image-push:
runs-on: ubuntu-latest
name: Create staging docker image
steps:
- name: Check out git repository
uses: actions/checkout@v4.1.1
- 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.0.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3.1.0
- name: Build and push
id: docker_build
uses: docker/build-push-action@v5.1.0
with:
context: ./
file: ./Dockerfile
push: true
tags: "clinicalgenomics/genotype-api-stage:${{steps.get_branch_name.outputs.branch}}, clinicalgenomics/genotype-api-stage:latest"