Skip to content

Jupyter

Jupyter #723

Workflow file for this run

name: Jupyter
on:
push:
branches:
- main
paths:
- .github/workflows/jupyter.yaml
- jupyter/Dockerfile
workflow_dispatch:
schedule:
- cron: "0 8 * * *"
env:
IMAGE: jupyter
permissions:
contents: read
id-token: write
packages: write
jobs:
build:
name: Python
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: Check if we can build Dockerfile
uses: docker/build-push-action@v5
with:
file: jupyter/Dockerfile
load: true
- id: auth
name: Authenticate with Google Cloud
uses: google-github-actions/auth@v2
with:
token_format: access_token
workload_identity_provider: projects/193123067890/locations/global/workloadIdentityPools/ci-knada-images/providers/ci-knada-images
service_account: [email protected]
- uses: docker/login-action@v3
name: Login to Google Artifact Registry
with:
registry: europe-north1-docker.pkg.dev
username: oauth2accesstoken
password: ${{ steps.auth.outputs.access_token }}
- uses: docker/login-action@v3
name: Login to GitHub Container Registry
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: echo "TAG=$(git log -1 --pretty=%ad --date=format:%Y-%m-%d)-$(git log --pretty=format:'%h' -n 1)" >> $GITHUB_ENV
- uses: docker/build-push-action@v5
with:
file: jupyter/Dockerfile
push: true
tags: |
europe-north1-docker.pkg.dev/knada-gcp/knada-north/${{ env.IMAGE }}:${{ env.TAG }}-3.11
ghcr.io/${{ github.repository }}/${{ env.IMAGE }}:${{ env.TAG }}-3.11