Skip to content

Commit

Permalink
test docker init
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmeaton committed Oct 9, 2020
1 parent e7658c4 commit bfd5ab0
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/docker.yaml
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;
6 changes: 6 additions & 0 deletions workflow/envs/plot/Dockerfile
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

0 comments on commit bfd5ab0

Please sign in to comment.