Skip to content

build-and-push-nightly-pytorch-compile #471

build-and-push-nightly-pytorch-compile

build-and-push-nightly-pytorch-compile #471

name: build-and-push-nightly-pytorch-compile
on:
schedule:
# Runs "nightly, at 3am" (see https://crontab.guru)
- cron: '0 3 * * *'
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: foundation-model-stack/base
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
# docker login source https://github.com/docker/login-action
- uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: build and push
id: push
run: ./nightly-pytorch-compile/buildAndPush.sh
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true