Skip to content

Create build-publish.yml #1

Create build-publish.yml

Create build-publish.yml #1

Workflow file for this run

name: Build and Publish Docker Image
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
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 Docker Image
run: |
docker build -t ghcr.io/${{ github.repository }}/julia-jeg-kernelspec:beta .
- name: Push Docker Image
run: |
docker push ghcr.io/${{ github.repository }}/julia-jeg-kernelspec:beta