Change to wget as curl as problems on arm64 on 24.04 #48
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: | |
- main | |
- dotnet8 | |
tags: | |
- 'v*' | |
jobs: | |
docker: | |
name: Docker Build and Publish | |
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 "datetag=$(date -u +'%Y%m%d')" >> "$GITHUB_OUTPUT" | |
echo "created=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> "$GITHUB_OUTPUT" | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
# Login against a Docker registry except on PR | |
# https://github.com/docker/login-action | |
- name: Log into registry ghcr.io | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push minimal-dotnet | |
id: docker_build_minimal | |
uses: docker/build-push-action@v6 | |
with: | |
push: true | |
build-args: base_image=quay.io/jupyter/minimal-notebook:ubuntu-24.04 | |
tags: ghcr.io/pocki/jupyter-dotnet:minimal-dotnet8-latest, ghcr.io/pocki/jupyter-dotnet:minimal-dotnet8-${{ steps.prep.outputs.datetag }}, ghcr.io/pocki/jupyter-dotnet:minimal-dotnet8-${{ github.ref_name }} | |
labels: | | |
type: minimal | |
org.opencontainers.image.title=Jupyter .NET (minimal) | |
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,linux/arm64 | |
- 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/build-push-action@v6 | |
with: | |
push: true | |
build-args: base_image=quay.io/jupyter/scipy-notebook:ubuntu-24.04 | |
tags: ghcr.io/pocki/jupyter-dotnet:scipy-dotnet8-latest, ghcr.io/pocki/jupyter-dotnet:scipy-dotnet8-${{ steps.prep.outputs.datetag }}, ghcr.io/pocki/jupyter-dotnet:scipy-dotnet8-${{ github.ref_name }} | |
labels: | | |
type: scipy | |
org.opencontainers.image.title=Jupyter .NET (SciPy) | |
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,linux/arm64 | |
- 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/build-push-action@v6 | |
with: | |
push: true | |
build-args: base_image=quay.io/jupyter/r-notebook:ubuntu-24.04 | |
tags: ghcr.io/pocki/jupyter-dotnet:r-dotnet8-latest, ghcr.io/pocki/jupyter-dotnet:r-dotnet8-${{ steps.prep.outputs.datetag }}, ghcr.io/pocki/jupyter-dotnet:r-dotnet8-${{ github.ref_name }} | |
labels: | | |
type: r | |
org.opencontainers.image.title=Jupyter .NET (R) | |
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,linux/arm64 | |
- name: Image digest r-dotnet | |
run: echo ${{ steps.docker_build_r.outputs.digest }} |