-
Notifications
You must be signed in to change notification settings - Fork 4
22 lines (21 loc) · 1.05 KB
/
docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
name: DockerIMG
on:
push:
tags: [v*]
jobs:
DockerIMG:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: '1.6'
- run: julia --project -e 'import Pkg; Pkg.add(string(:SimpleContainerGenerator)); import SimpleContainerGenerator; pkgs = [(name = "LikelihoodProfiler",),]; SimpleContainerGenerator.create_dockerfile(pkgs;no_test=["LikelihoodProfiler"], julia_version = v"1.6.0")'
- if: github.ref == 'refs/heads/master' && (github.event_name == 'push' || github.event_name == 'schedule')
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
- run: docker build -t insysbio/likelihoodprofiler .
- if: github.ref == 'refs/heads/master' && (github.event_name == 'push' || github.event_name == 'schedule')
run: docker push insysbio/likelihoodprofiler