1
Fork 0
mirror of https://github.com/Steffo99/sophon.git synced 2024-12-22 23:04:21 +00:00
sophon/.github/workflows/build-docker-jupyter.yml

20 lines
676 B
YAML
Raw Normal View History

name: Build jupyter image
on:
push:
branches: [ main ]
paths:
2021-10-22 22:54:44 +00:00
- "jupyter/**"
jobs:
build:
name: "Build jupyter image"
runs-on: ubuntu-latest
steps:
- name: "Checkout repository"
uses: actions/checkout@v2
- name: "Login to GitHub Containers"
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u Steffo99 --password-stdin
- name: "Build the docker container `ghcr.io/steffo99/sophon-jupyter:latest`"
run: docker build ./jupyter --tag ghcr.io/steffo99/sophon-jupyter:latest
- name: "Upload the container to GitHub Containers"
run: docker push ghcr.io/steffo99/sophon-jupyter:latest