-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (39 loc) · 1.34 KB
/
docker-build-push.yml
File metadata and controls
41 lines (39 loc) · 1.34 KB
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
name: docker-build-push
#https://github.com/marketplace/actions/build-and-push-docker-images
on:
push:
branches: [ master ]
#branches: [feat-chris]
jobs:
build-push-docker:
runs-on: ubuntu-latest
strategy:
matrix:
tag: ['base']
docker-file: ['Dockerfile']
module-name: ['peka','minionqc','tantan','purge_haplotigs','r']
include:
- tag: 'cpu'
docker-file: 'Dockerfile.cpu'
module-name: 'guppy'
- tag: 'gpu'
docker-file: 'Dockerfile.gpu'
module-name: 'guppy'
steps:
- uses: actions/checkout@v2
- name: Set version and tags
id: ver
run: |
VERSION=`cat tools/${{matrix.module-name}}/VERSION`
echo "version: $VERSION"
echo "::set-output name=version::$(echo $VERSION)"
shell: bash
- name: Build and push image
uses: docker/build-push-action@v1.1.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: luslab/nf-modules-${{matrix.module-name}}
path: tools/${{matrix.module-name}}
dockerfile: tools/${{matrix.module-name}}/${{matrix.docker-file}}
tags: latest,${{matrix.tag}}-${{steps.ver.outputs.version}}