Skip to content

Commit

Permalink
more complicated if check
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmeaton committed Oct 12, 2020
1 parent bcd723f commit 03ad8c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,16 @@ jobs:
main.yaml
# build docker image
- name: docker build
id: docker-build
if: steps.git-diff.outputs.diff
run: |
cd workflow/envs/main/;
docker build --no-cache . -t ktmeaton/plague-phylogeography:latest;
echo ::set-output run=true
#------------------------------------------------------------------------#
# tag and upload
- name: docker push (dev)
if: steps.git-diff.outputs.diff && ${{ github.event_name == 'push' }}
if: steps.docker-build.outputs.run && ${{ github.event_name == 'push' }}
#if: steps.git-diff.outputs.diff && ${{ github.event_name == 'push' }}
run: |
echo "${{ secrets.DOCKERHUB_PASSWORD }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin;
Expand Down

0 comments on commit 03ad8c1

Please sign in to comment.