Skip to content

Use jupyter nbgrader (now with autotest) #9

Use jupyter nbgrader (now with autotest)

Use jupyter nbgrader (now with autotest) #9

name: Rebuild and publish ubcdsci/py-dsci-100 and ubcdsci/py-dsci-100-grading on DockerHub
on:
push:
branches:
- main
paths:
- "docker/py-dsci-100/Dockerfile"
- "docker/py-dsci-100-grading/Dockerfile"
jobs:
rebuild-docker:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout main
uses: actions/checkout@v3
with:
fetch-depth: "0"
ref: "main"
- name: Rebuild and publish py-dsci-100 image
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: ubcdsci/py-dsci-100
id: build-image
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
workdir: "docker/py-dsci-100"
snapshot: true
- name: Rebuild and publish py-dsci-100-grading image
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: ubcdsci/py-dsci-100-grading
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
workdir: "docker/py-dsci-100-grading"
tags: "latest,${{ steps.build-image.outputs.snapshot-tag }}"