Skip to content

Commit

Permalink
Merge pull request #103 from rasools/OMICSINT_H24
Browse files Browse the repository at this point in the history
Add session gems workflow
  • Loading branch information
rasools authored Sep 12, 2024
2 parents 5f12d0c + 86b749c commit 4b57e53
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker-build-lab-gems-amd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ jobs:
with:
context: ./session_gems
file: session_gems/Dockerfile
platforms: linux/amd64
platforms: linux/arm64
push: true
tags: docker.io/rasoolsnbis/omicsint_h24:session_gems
tags: docker.io/rasoolsnbis/omicsint_h24:session_gems_arm

- name: Inspect Docker Image
run: docker buildx imagetools inspect docker.io/rasoolsnbis/omicsint_h24:session_gems
run: docker buildx imagetools inspect docker.io/rasoolsnbis/omicsint_h24:session_gems_arm
43 changes: 43 additions & 0 deletions .github/workflows/docker-build-lab-gems-arm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build and Push Docker Image for Session Gems

on:
push:
paths:
- 'session_gems/**'
branches:
- OMICSINT_H24

jobs:
build:
runs-on: ubuntu-latest

if: github.repository == 'NBISweden/workshop_omics_integration'

steps:
# Checkout the repository
- name: Checkout repository
uses: actions/checkout@v3

# Set up Docker Buildx for multi-platform builds
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

# Log in to Docker Hub using the secrets
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

# Build and push the Docker image for both amd64 and arm64
- name: Build and Push Docker Image for Session Gems
uses: docker/build-push-action@v4
with:
context: ./session_gems
file: session_gems/Dockerfile
platforms: linux/amd64
push: true
tags: docker.io/rasoolsnbis/omicsint_h24:session_gems_amd

- name: Inspect Docker Image
run: docker buildx imagetools inspect docker.io/rasoolsnbis/omicsint_h24:session_gems_amd
2 changes: 1 addition & 1 deletion session_gems/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ RUN /opt/conda/envs/gems/bin/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"]

0 comments on commit 4b57e53

Please sign in to comment.