Skip to content

build-and-push-jupyterlab-image #1

build-and-push-jupyterlab-image

build-and-push-jupyterlab-image #1

name: build-and-push-jupyterlab-image
on:
workflow_dispatch: # This allows you to manually trigger the action from GitHub UI.
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up Docker Buildx
id: buildx
uses: docker/[email protected]
- name: Login to dockerhub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Get lowercase repo name (for dynamic tags)
id: repo_name
run: |
lowercase_name=$(echo ${{ github.event.repository.name }} | tr '[:upper:]' '[:lower:]')
echo "::set-output name=repo_name::${lowercase_name}"
- name: Build and push latest
id: docker_build_jupyterlab
uses: docker/[email protected]
with:
context: docker/jupyterlab
file: docker/jupyterlab/Dockerfile
builder: ${{ steps.buildx.outputs.name }}
push: true
tags: |
esiil/${{ steps.repo_name.outputs.repo_name }}_jupyterlab:latest
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}