Skip to content

Commit

Permalink
check changes test
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmeaton committed Oct 9, 2020
1 parent 5d35fae commit 04fdd47
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#------------------------------------------------------------------------------#
name: Docs
name: Docker
#------------------------------------------------------------------------------#
# Workflow conditions
on:
Expand All @@ -23,12 +23,28 @@ jobs:
if: ${{ github.repository == 'ktmeaton/plague-phylogeography' }}
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_PASS: ${{ secrets.DOCKERHUB_PASS }}
DOCKERHUB_PASS: ${{ secrets.DOCKERHUB_PASSWORD }}
steps:
- name: checkout repo
uses: actions/checkout@v2

- name: check for changes pt. 1
run:
export CHANGES=`git diff-tree --no-commit-id --name-only -r 1af4b97de6`;
echo $CHANGES;

- name: check for changes pt. 2
run:
echo $CHANGES;

- name: build docker image - plot
run:
cd workflow/envs/plot;
docker build --no-cache . -t ktmeaton/plague-phylogeography:plot;

#- name: push to DockerHub
# if: ${{ github.event_name == 'push' }}
# run: |
# echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
# docker tag ktmeaton/plague-phylogeography:plot
# docker push ktmeaton/plague-phylogeography:plot

0 comments on commit 04fdd47

Please sign in to comment.