Skip to content

Commit

Permalink
rearrange env and add docker authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmeaton committed Oct 13, 2020
1 parent a8e3ae4 commit 787cb51
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/install.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
#------------------------------------------------------------------------------#
name: Install
#------------------------------------------------------------------------------#
# Global workflow environment variables
env:
CONDA_ENVS_PATH: "/home/runner/miniconda/envs:/usr/share/miniconda/envs"
CONDA_PKGS_DIRS: "/home/runner/miniconda/pkgs"
CONDA_SNK_PREFIX: "/home/runner/work/plague-phylogeography/plague-phylogeography/.snakemake/conda"
SINGULARITY_SNK_PREFIX: "/home/runner/work/plague-phylogeography/plague-phylogeography/.snakemake/singularity/"
#------------------------------------------------------------------------------#
# Workflow conditions
on:
push:
Expand All @@ -33,6 +26,16 @@ jobs:
fail-fast: false
steps:
#------------------------------------------------------------------------#
# Env setup
- name: setup environment variables
run: |
echo "CONDA_ENVS_PATH=/home/runner/miniconda/envs:/usr/share/miniconda/envs" >> $GITHUB_ENV
echo "CONDA_PKGS_DIRS=/home/runner/miniconda/pkgs" >> $GITHUB_ENV
echo "CONDA_SNK_PREFIX=/home/runner/work/plague-phylogeography/plague-phylogeography/.snakemake/conda" >> $GITHUB_ENV
echo "SINGULARITY_SNK_PREFIX=/home/runner/work/plague-phylogeography/plague-phylogeography/.snakemake/singularity/" >> $GITHUB_ENV
echo "SINGULARITY_DOCKER_USERNAME=${{ secrets.DOCKERHUB_USERNAME }}" >> $GITHUB_ENV
echo "SINGULARITY_DOCKER_PASSWORD=${{ secrets.DOCKERHUB_PASSWORD }}" >> $GITHUB_ENV
#------------------------------------------------------------------------#
# Checkout Repository
- name: checkout repo
uses: actions/checkout@v2
Expand Down

0 comments on commit 787cb51

Please sign in to comment.