forked from connor-lab/ncov2019-artic-nf
65 lines (54 loc) · 1.82 KB
/
build_dockerfile_master.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Build and publish docker images on push to master
on:
push:
branches:
- "master"
jobs:
docker-image-push-illumina:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Get commit hash
id: commit
uses: prompt/actions-commit-hash@v2
- name: Build and push Illumina
id: docker_build
uses: docker/build-push-action@v3
with:
context: ./
file: ./environments/illumina/Dockerfile
push: true
tags: "genomicmedicinesweden/gms-artic-illumina:${{steps.commit.outputs.short}}, genomicmedicinesweden/gms-artic-illumina:latest"
docker-image-push-nanopore:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Get commit hash
id: commit
uses: prompt/actions-commit-hash@v2
- name: Build and push Nanopore
id: docker_build
uses: docker/build-push-action@v3
with:
context: ./
file: ./environments/nanopore/Dockerfile
push: true
tags: "genomicmedicinesweden/gms-artic-nanopore:${{steps.commit.outputs.short}}, genomicmedicinesweden/gms-artic-nanopore:latest"