-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (32 loc) · 1 KB
/
release_ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
name: Release Actions
on:
release:
types:
- created
jobs:
docker-image-release:
runs-on: ubuntu-latest
name: Push production docker image to dockerhub
steps:
- name: Check out git repository
uses: actions/checkout@v2
- name: Extract branch name and remove illegal chars
id: get_branch_name
run: echo "branch=$(echo "$(tr "/" "-" <<<${GITHUB_REF#refs/heads/})")" >> $GITHUB_OUTPUT
- 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@v2
- name: Build and push
id: docker_build
uses: docker/build-push-action@v3
with:
context: ./
file: ./Dockerfile
push: true
tags: "clinicalgenomics/arnold:${{github.event.release.tag_name}}, clinicalgenomics/arnold:latest"