-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update and rename build-publish.yml to build-push.yml
- Loading branch information
1 parent
e647599
commit d6459d4
Showing
2 changed files
with
37 additions
and
29 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |