-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 1.17 KB
/
build-push.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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 }}