Skip to content

Commit

Permalink
check job id
Browse files Browse the repository at this point in the history
  • Loading branch information
smburbach committed Aug 9, 2024
1 parent 4f9116c commit b6c8fb2
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,14 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: echo job id
run: echo ${{ github.job }}
- name: build and push
uses: docker/build-push-action@v6
with:
context: ./base
cache-to: type=registry,ref=brineylab/kubeflow-codeserver:cache,mode=max
cache-from: type=registry,ref=brineylab/kubeflow-codeserver:cache
cache-to: type=registry,ref=brineylab/base:cache,mode=max
cache-from: type=registry,ref=brineylab/base:cache
push: ${{ github.event_name == 'release' }}
tags: |
brineylab/base:latest
Expand Down Expand Up @@ -84,7 +86,7 @@ jobs:
push: true
tags: |
brineylab/kubeflow-codeserver:latest
brineylab/kubeflow-codeserver:${{ github.event.release.tag_name }}
brineylab/kubeflow-codeserver:${{ github.event.release.tag_name || 'no_push' }}
# ------------------
# JUPYTERHUB
Expand Down Expand Up @@ -123,7 +125,7 @@ jobs:
push: true
tags: |
brineylab/jupyterhub-base:latest
brineylab/jupyterhub-base:${{ github.event.release.tag_name }}
brineylab/jupyterhub-base:${{ github.event.release.tag_name || 'no_push' }}
# jupyter depends on base and needs to wait to be built
jupyterhub-jupyter:
Expand Down Expand Up @@ -160,9 +162,9 @@ jobs:
push: true
tags: |
brineylab/jupyterhub-jupyter:latest
brineylab/jupyterhub-jupyter:${{ github.event.release.tag_name }}
brineylab/jupyterhub-jupyter:${{ github.event.release.tag_name || 'no_push' }}
brineylab/jupyter:latest
brineylab/jupyter:${{ github.event.release.tag_name }}
brineylab/jupyter:${{ github.event.release.tag_name || 'no_push' }}
# datascience image depends on jupyter
jupyterhub-datascience:
Expand Down Expand Up @@ -199,9 +201,9 @@ jobs:
push: true
tags: |
brineylab/jupyterhub-datascience:latest
brineylab/jupyterhub-datascience:${{ github.event.release.tag_name }}
brineylab/jupyterhub-datascience:${{ github.event.release.tag_name || 'no_push' }}
brineylab/datascience:latest
brineylab/datascience:${{ github.event.release.tag_name }}
brineylab/datascience:${{ github.event.release.tag_name || 'no_push' }}
# deeplearning image depends on datascience
jupyterhub-deeplearning:
Expand Down Expand Up @@ -239,9 +241,9 @@ jobs:
push: true
tags: |
brineylab/jupyterhub-deeplearning:latest
brineylab/jupyterhub-deeplearning:${{ github.event.release.tag_name }}
brineylab/jupyterhub-deeplearning:${{ github.event.release.tag_name || 'no_push' }}
brineylab/deeplearning:latest
brineylab/deeplearning:${{ github.event.release.tag_name }}
brineylab/deeplearning:${{ github.event.release.tag_name || 'no_push' }}
# ------------------
# KUBEFLOW
Expand Down Expand Up @@ -280,7 +282,7 @@ jobs:
push: true
tags: |
brineylab/kubeflow-base:latest
brineylab/kubeflow-base:${{ github.event.release.tag_name }}
brineylab/kubeflow-base:${{ github.event.release.tag_name || 'no_push' }}
# python depends on base and needs to wait to be built
kubeflow-python:
Expand Down Expand Up @@ -317,7 +319,7 @@ jobs:
push: true
tags: |
brineylab/kubeflow-python:latest
brineylab/kubeflow-python:${{ github.event.release.tag_name }}
brineylab/kubeflow-python:${{ github.event.release.tag_name || 'no_push' }}
# jupyter depends on python and needs to wait to be built
kubeflow-jupyter:
Expand Down Expand Up @@ -354,7 +356,7 @@ jobs:
push: true
tags: |
brineylab/kubeflow-jupyter:latest
brineylab/kubeflow-jupyter:${{ github.event.release.tag_name }}
brineylab/kubeflow-jupyter:${{ github.event.release.tag_name || 'no_push' }}
# datascience image depends on jupyter
kubeflow-datascience:
Expand Down Expand Up @@ -391,7 +393,7 @@ jobs:
push: true
tags: |
brineylab/kubeflow-datascience:latest
brineylab/kubeflow-datascience:${{ github.event.release.tag_name }}
brineylab/kubeflow-datascience:${{ github.event.release.tag_name || 'no_push' }}
# deeplearning image depends on datascience
kubeflow-deeplearning:
Expand Down Expand Up @@ -428,6 +430,6 @@ jobs:
push: true
tags: |
brineylab/kubeflow-deeplearning:latest
brineylab/kubeflow-deeplearning:${{ github.event.release.tag_name }}
brineylab/kubeflow-deeplearning:${{ github.event.release.tag_name || 'no_push' }}

0 comments on commit b6c8fb2

Please sign in to comment.