Generalize and rename buffer aliquotation script used in the Sample Placement step in several LIMS workflows #792
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Push cg_lims image to Docker Hub on push event | |
on: [pull_request] | |
jobs: | |
docker-image-push: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out git repository | |
uses: actions/checkout@v2 | |
- 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@v1 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Build and push | |
id: docker_build | |
uses: docker/build-push-action@v2 | |
with: | |
context: ./ | |
file: ./Dockerfile | |
push: true | |
tags: "clinicalgenomics/cg_lims-stage:${{steps.get_branch_name.outputs.branch}}, clinicalgenomics/cg_lims-stage:latest" |