Skip to content

Commit

Permalink
add gpu-py3 image
Browse files Browse the repository at this point in the history
  • Loading branch information
dmpetrov committed Apr 18, 2020
1 parent be57d40 commit 65f96e5
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:
- name: Publish dvc-cml docker image
# only publish if push to master (dvcorg/dvc-cml:latest)
# or create a tag in the repo (dvcorg/dvc-cml:tag)
if: github.event_name == 'push' && (contains(github.ref, 'tags') || github.ref == 'refs/heads/master')
if: github.event_name == 'push' && \
(contains(github.ref, 'tags') || github.ref == 'refs/heads/master')
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: dvcorg/dvc-cml
Expand All @@ -33,7 +34,8 @@ jobs:
tag_names: true

- name: Publish dvc-cml-py3 docker image
if: github.event_name == 'push' && (contains(github.ref, 'tags') || github.ref == 'refs/heads/master')
if: github.event_name == 'push' && \
(contains(github.ref, 'tags') || github.ref == 'refs/heads/master')
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: dvcorg/dvc-cml-py3
Expand All @@ -45,7 +47,8 @@ jobs:
tag_names: true

- name: Publish dvc-cml-dev docker image
if: github.event_name == 'push' && (contains(github.ref, 'tags') || github.ref == 'refs/heads/master')
if: github.event_name == 'push' && \
(contains(github.ref, 'tags') || github.ref == 'refs/heads/master')
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: dvcorg/dvc-cml-dev
Expand All @@ -57,7 +60,8 @@ jobs:
tag_names: true

- name: Publish dvc-cml-gpu docker image
if: github.event_name == 'push' && (contains(github.ref, 'tags') || github.ref == 'refs/heads/master')
if: github.event_name == 'push' && \
(contains(github.ref, 'tags') || github.ref == 'refs/heads/master')
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: dvcorg/dvc-cml-gpu
Expand All @@ -67,3 +71,17 @@ jobs:
context: ./
cache: true
tag_names: true

- name: Publish dvc-cml-gpu-py3 docker image
if: github.event_name == 'push' && \
(contains(github.ref, 'tags') || github.ref == 'refs/heads/master')
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: dvcorg/dvc-cml-gpu-py3
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
dockerfile: ./docker/Dockerfile-gpu-py3
context: ./
cache: true
tag_names: true

0 comments on commit 65f96e5

Please sign in to comment.