Skip to content

Commit

Permalink
Merge branch 'main' of github.com:eodcgmbh/julia-jeg-kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
david.fischak@eodc.eu committed Feb 12, 2025
2 parents 9b209b6 + 6e0add9 commit 9d3e9d7
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build and Publish
on:
push:
branches:
- main
workflow_dispatch:

jobs:
build-and-publish:
runs-on: ubuntu-24.04
strategy:
matrix:
image:
- name: "julia-jeg-kernelspec"
dockerfile: "kernel-julia/gateway/kernelspec-image/Dockerfile"
context: "kernel-julia/gateway/kernelspec-image"
tag: "beta"
pre_build_command: ""
- name: "julia-jeg-kernel"
dockerfile: "kernel-julia/container/Dockerfile"
context: "kernel-julia/container"
tag: "beta"
pre_build_command: "cd kernel-julia/container/; \
tar --gzip --create --dereference --file=jupyter_enterprise_gateway_kernel_image_files_docker-julia.tar.gz kernel-launchers/ bootstrap-kernel.sh eventloop.jl init.jl"

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

- name: Log in to GitHub Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io --username ${{ github.actor }} --password-stdin

- name: Execute Pre-Build Command
run: ${{ matrix.image.pre_build_command }}

- name: Build and Push Docker Image
run: |
docker build \
--file ${{ matrix.image.dockerfile }} \
--tag ghcr.io/${{ github.repository }}/${{ matrix.image.name }}:${{ matrix.image.tag }} \
${{ matrix.image.context }}
docker push ghcr.io/${{ github.repository }}/${{ matrix.image.name }}:${{ matrix.image.tag }}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# README

[![Build and Publish](https://github.com/eodcgmbh/julia-jeg-kernel/actions/workflows/build-publish.yml/badge.svg?event=push)](https://github.com/eodcgmbh/julia-jeg-kernel/actions/workflows/build-publish.yml)

## Components

### container/
Expand Down

0 comments on commit 9d3e9d7

Please sign in to comment.