Skip to content

Commit

Permalink
Create build-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfischak authored Dec 3, 2024
1 parent c76ae5a commit 93ab2ac
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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

0 comments on commit 93ab2ac

Please sign in to comment.