.NET8 initial, include latest samples #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | ||
on: | ||
push: | ||
branches: [ dotnet8 ] | ||
env: | ||
# Use docker.io for Docker Hub if empty | ||
REGISTRY: ghcr.io | ||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
# This is used to complete the identity challenge | ||
# with sigstore/fulcio when running outside of PRs. | ||
id-token: write | ||
steps: | ||
- name: Prepare | ||
id: prep | ||
run: | | ||
echo ::set-output name=datetag::$(date -u +'%Y%m%d') | ||
echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ') | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
# Login against a Docker registry except on PR | ||
# https://github.com/docker/login-action | ||
- name: Log into registry ${{ env.REGISTRY }} | ||
if: github.event_name != 'pull_request' | ||
uses: docker/[email protected] | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Build and push minimal-dotnet | ||
id: docker_build_minimal | ||
uses: docker/[email protected] | ||
with: | ||
push: true | ||
build-args: base_image=jupyter/minimal-notebook | ||
tags: pocki/jupyter-dotnet/minimal-dotnet8:latest, pocki/jupyter-dotnet/minimal-dotnet8:${{ steps.prep.outputs.datetag }} | ||
labels: | | ||
org.opencontainers.image.source=${{ github.event.repository.html_url }} | ||
org.opencontainers.image.created=${{ steps.prep.outputs.created }} | ||
org.opencontainers.image.revision=${{ github.sha }} | ||
platforms: linux/amd64 | ||
- name: Image digest minimal-dotnet | ||
run: echo ${{ steps.docker_build_minimal.outputs.digest }} | ||
- name: Build and push scipy-dotnet | ||
id: docker_build_scipy | ||
uses: docker/[email protected] | ||
with: | ||
push: true | ||
build-args: base_image=jupyter/scipy-notebook | ||
tags: pocki/jupyter-dotnet/scipy-dotnet8:latest, pocki/jupyter-dotnet/scipy-dotnet8:${{ steps.prep.outputs.datetag }} | ||
labels: | | ||
org.opencontainers.image.source=${{ github.event.repository.html_url }} | ||
org.opencontainers.image.created=${{ steps.prep.outputs.created }} | ||
org.opencontainers.image.revision=${{ github.sha }} | ||
platforms: linux/amd64 | ||
- name: Image digest scipy-dotnet | ||
run: echo ${{ steps.docker_build_scipy.outputs.digest }} | ||
- name: Build and push r-dotnet | ||
id: docker_build_r | ||
uses: docker/[email protected] | ||
with: | ||
push: true | ||
build-args: base_image=jupyter/r-notebook | ||
tags: pocki/jupyter-dotnet/r-dotnet8:latest, pocki/jupyter-dotnet/r-dotnet8:${{ steps.prep.outputs.datetag }} | ||
labels: | | ||
org.opencontainers.image.source=${{ github.event.repository.html_url }} | ||
org.opencontainers.image.created=${{ steps.prep.outputs.created }} | ||
org.opencontainers.image.revision=${{ github.sha }} | ||
platforms: linux/amd64 | ||
- name: Image digest r-dotnet | ||
run: echo ${{ steps.docker_build_r.outputs.digest }} |