From e33830239c141bf0e265ddaee97c7d3ea4e2f722 Mon Sep 17 00:00:00 2001 From: Rasool Saghaleyni Date: Tue, 8 Oct 2024 13:29:04 +0200 Subject: [PATCH] Update toplogy lab --- .../Build and Push Docker Images for Labs.yml | 18 ++++++++++++++++++ session_topology/Dockerfile | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Build and Push Docker Images for Labs.yml b/.github/workflows/Build and Push Docker Images for Labs.yml index 87727ae4..530dba0f 100644 --- a/.github/workflows/Build and Push Docker Images for Labs.yml +++ b/.github/workflows/Build and Push Docker Images for Labs.yml @@ -12,6 +12,7 @@ on: - 'session_ml/UMAP_DataIntegration/**' - 'session_gems/**' - 'session_gsa/**' + - 'session_toplogy/**' branches: - OMICSINT_H24 @@ -81,6 +82,9 @@ jobs: if git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep -q '^session_gsa'; then echo "gsa=true" >> $GITHUB_ENV fi + if git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep -q '^session_topology'; then + echo "topology=true" >> $GITHUB_ENV + fi # Conditionally build and push images for Deep Learning Lab - name: Build and Push Docker Image for Deep Learning Lab @@ -195,4 +199,18 @@ jobs: tags: | docker.io/rasoolsnbis/omicsint_h24:session_gsa_amd_v.h24.${{ env.SHORT_SHA }} ghcr.io/nbisweden/omicsint_h24:session_gsa_amd_v.h24.${{ env.SHORT_SHA }} + + # Conditionally build and push images for Topology lab + - name: Build and Push Docker Image for Topology Lab + if: env.topology == 'true' + uses: docker/build-push-action@v4 + with: + context: ./session_topology + file: session_topology/Dockerfile + platforms: linux/amd64 + push: true + no-cache: true + tags: | + docker.io/rasoolsnbis/omicsint_h24:session_topology_amd_v.h24.${{ env.SHORT_SHA }} + ghcr.io/nbisweden/omicsint_h24:session_topology_amd_v.h24.${{ env.SHORT_SHA }} diff --git a/session_topology/Dockerfile b/session_topology/Dockerfile index 7dc64f25..dbbd18d5 100644 --- a/session_topology/Dockerfile +++ b/session_topology/Dockerfile @@ -49,4 +49,4 @@ RUN jupyter notebook --generate-config && \ echo "c.NotebookApp.open_browser = False" >> /home/jovyan/.jupyter/jupyter_notebook_config.py # Set the startup script as the entrypoint -ENTRYPOINT ["/usr/local/bin/start-script.sh"] +ENTRYPOINT ["/usr/local/bin/start-script.sh"] \ No newline at end of file