Skip to content

Commit

Permalink
try to push to docker hub
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmeaton committed Oct 9, 2020
1 parent 25fe5ce commit c1a99b2
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,14 @@ jobs:
#------------------------------------------------------------------------#
# Plot environment
- name: build PLOT docker image
if: contains(${{ steps.git-diff.outputs.diff }}, "workflow/envs/plot/plot.yaml") || contains(${{ steps.git-diff.outputs.diff }}, "workflow/envs/plot/Dockerfile")
# if: contains(${{ steps.git-diff.outputs.diff }}, "workflow/envs/plot/plot.yaml") || contains(${{ steps.git-diff.outputs.diff }}, "workflow/envs/plot/Dockerfile")
run:
cd workflow/envs/plot;
docker build --no-cache . -t ktmeaton/plague-phylogeography:plot;
#- name: push PLOT 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

- name: push PLOT to DockerHub
# if: contains(${{ steps.git-diff.outputs.diff }}, "workflow/envs/plot/plot.yaml") || contains(${{ steps.git-diff.outputs.diff }}, "workflow/envs/plot/Dockerfile")
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 c1a99b2

Please sign in to comment.