-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#------------------------------------------------------------------------------# | ||
name: Docs | ||
#------------------------------------------------------------------------------# | ||
# Workflow conditions | ||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
paths: | ||
- 'workflows/envs/*/Dockerfile' | ||
pull_request: | ||
branches: | ||
- '*' | ||
release: | ||
types: [published] | ||
#------------------------------------------------------------------------------# | ||
jobs: | ||
#----------------------------------------------------------------------------# | ||
push_dockerhub: | ||
name: Push a docker image to Docker Hub | ||
runs-on: ubuntu-latest | ||
if: ${{ github.repository == 'ktmeaton/plague-phylogeography' }} | ||
env: | ||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | ||
DOCKERHUB_PASS: ${{ secrets.DOCKERHUB_PASS }} | ||
steps: | ||
- name: checkout repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: build docker image - plot | ||
run: | ||
cd workflow/envs/plot; | ||
docker build --no-cache . -t ktmeaton/plague-phylogeography:plot; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM continuumio/miniconda3 | ||
LABEL authors="Katherine Eaton" \ | ||
description="Docker image containing dependencies for plague-phylogeography: plot." | ||
COPY plot.yaml / | ||
RUN conda install -c conda-forge mamba && mamba env create -f /plot.yaml && conda clean -a | ||
ENV PATH /opt/conda/envs/plague-phylogeography-plot/bin:$PATH |