Skip to content

Commit

Permalink
Update and rename build-publish.yml to build-push.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfischak authored Dec 3, 2024
1 parent e647599 commit d6459d4
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 29 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/build-publish.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build and Publish Julia Docker Images

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"
- name: "julia-jeg-kernel"
dockerfile: "kernel-julia/container/Dockerfile"
context: "kernel-julia/container"
tag: "beta"

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

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

- 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 }}

0 comments on commit d6459d4

Please sign in to comment.