Skip to content

Commit

Permalink
rebased on datahub example notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
dtandersen committed Mar 22, 2023
1 parent b1213ad commit 41981b8
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 26 deletions.
56 changes: 31 additions & 25 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,41 @@
name: Docker Workflow

name: Build notebook
on:
schedule:
- cron: '0 2 * * *'
push:
branches:
- main
- master
# paths:
# - "requirements.txt"
# - "Dockerfile"
# - ".github/workflows/main.yml"
workflow_dispatch:

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
docker:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to DockerHub
- name: Checkout notebook
uses: actions/checkout@v3

- name: Log in to registry
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v3
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Generate tags and labels
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push notebook
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ucsdets/extcse41305-notebook:latest
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# base notebook, contains Jupyter and relevant tools
# See https://github.com/ucsd-ets/datahub-docker-stack/wiki/Stable-Tag
# for a list of the most current containers we maintain
ARG BASE_CONTAINER=ucsdets/datahub-base-notebook:2022.3-stable
ARG BASE_CONTAINER=ucsdets/datahub-base-notebook:2023.2-stable

FROM $BASE_CONTAINER

Expand Down

0 comments on commit 41981b8

Please sign in to comment.