Spracherkennung für: .yml vermutete Sprache: MT940 {MT940[36] Fortran[33] Apollo[32]} [Methode: maximale Elemente, drei Dimensionen]
name: docker
on:
schedule:
- cron: '0 0 * * *' # Runs at 00:00 UTC every day
workflow_dispatch:
env:
# Possibly change this to `hub.docker.com` in the future
REGISTRY: ghcr.io
REPO_NAME: ${{ github.repository }}
jobs:
build
-and-push-docker-images:
if: github.repository ==
'leanprover-community/mathlib4'
strategy:
fail
-fast: false
matrix:
image:
- gitpod
- gitpod-blueprint
- lean
name: Build and push docker image
'${{ matrix.image }}'
runs
-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id
-token: write
steps:
# documentation at
#
https://docs.github.com/en/actions/use-cases-and-examples/publishing-packages/publishing-docker-images
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Log in to the container registry
uses: docker/login
-action@81c6f93d4bc991e510b342a00b419b3bb4efc5c6 # v4.7.0
with:
registry: ${{ env.REGISTRY }}
# might need set as `secrets.DOCKER_USERNAME` and `secrets.DOCKER_PASSWORD`
# if using different registry than ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for docker
id: meta
uses: docker/metadata
-action@dc802804100637a589fabce1cb79ff13a1411302 # v6.2.0
with:
images: ${{ env.REGISTRY }}/${{ env.REPO_NAME }}/${{ matrix.image }}
tags: |
type=schedule,pattern={{date
'YYYY-MM-DD'}}
type=sha
type=ref,event=branch
type=ref,event=tag
type=raw,value=latest
labels: |
org.opencontainers.image.licenses=Apache-2.0
- name: Build and push docker image
id: push
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
context: .
file: .docker/${{ matrix.image }}/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Generate artifact attestation
uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2
with:
subject-name: ${{ env.REGISTRY }}/${{ env.REPO_NAME }}/${{ matrix.image }}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
[Dauer der Verarbeitung: 0.5 Sekunden, vorverarbeitet 2026-11-18]