Skip to content

Add CMVFS Snapshotter support (#29) #151

Add CMVFS Snapshotter support (#29)

Add CMVFS Snapshotter support (#29) #151

Workflow file for this run

name: docker-notebook-root
on:
push:
tags:
- "*"
jobs:
build-and-push-image:
runs-on: ubuntu-latest
#env:
# DOCKER_TARGET_PLATFORM: linux/arm64
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get Repo Owner
id: get_repo_owner
run: echo ::set-output name=repo_owner::$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')
- name: Build container base image
uses: docker/build-push-action@v2
with:
context: ./stable/jhub-aas/docker/
outputs: "type=registry,push=true"
tags: |
ghcr.io/${{ steps.get_repo_owner.outputs.repo_owner }}/notebook:${{ env.RELEASE_VERSION }}-base
file: ./stable/jhub-aas/docker/Dockerfile.base
platforms: linux/amd64
- name: Build container base+HTC image
uses: docker/build-push-action@v2
with:
context: ./stable/jhub-aas/docker/
outputs: "type=registry,push=true"
tags: |
ghcr.io/${{ steps.get_repo_owner.outputs.repo_owner }}/notebook:${{ env.RELEASE_VERSION }}-htc
file: ./stable/jhub-aas/docker/Dockerfile.base-htc
platforms: linux/amd64
build-args: "NOTEBOOK_VERSION=${{ env.RELEASE_VERSION }}"
- name: Build container base+HTC+DASK image
uses: docker/build-push-action@v2
with:
context: ./stable/jhub-aas/docker/
outputs: "type=registry,push=true"
tags: |
ghcr.io/${{ steps.get_repo_owner.outputs.repo_owner }}/notebook:${{ env.RELEASE_VERSION }}-dask
file: ./stable/jhub-aas/docker/Dockerfile.dask
platforms: linux/amd64
build-args: "NOTEBOOK_VERSION=${{ env.RELEASE_VERSION }}"
- name: Build container base+htc+ROOT image
uses: docker/build-push-action@v2
with:
context: ./stable/jhub-aas/docker/
outputs: "type=registry,push=true"
tags: |
ghcr.io/${{ steps.get_repo_owner.outputs.repo_owner }}/notebook:${{ env.RELEASE_VERSION }}-htc-root
file: ./stable/jhub-aas/docker/Dockerfile.root-nb
platforms: linux/amd64
build-args: "NOTEBOOK_VERSION=${{ env.RELEASE_VERSION }}"