Skip to content

NOTEBOOK

NOTEBOOK #2

Workflow file for this run

name: Build and push NOTEBOOK
env:
REGISTRY: ghcr.io
IMAGE_NAME: notebook
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
on:
workflow_dispatch:
workflow_run:
workflows:
- Build and push DEV
types:
- completed
push:
branches:
- master
paths:
- 'Dockerfile.notebook'
- 'config/code-server/**'
- 'config/jupyter/**'
- 'provision/scripts/notebook/**'
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- run: echo "${{ github.actor }}/${{ env.IMAGE_NAME }} will be built and pushed to ${{ env.REGISTRY }}"
- name: Checkout repository
uses: actions/checkout@v3
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v1
- name: Build and push ${{ env.IMAGE_NAME }} image
uses: ./.github/actions/build-and-push-image
with:
image-name: ${{ env.IMAGE_NAME }}