caf324b09d
Build documentation / build (push) Failing after 0s
Deploy "method_comparison" Gradio to Spaces / deploy (push) Has been cancelled
Deploy "PEFT shop" Gradio app to Spaces / deploy (push) Has been cancelled
tests on transformers main / tests (push) Has been cancelled
tests / check_code_quality (push) Has been cancelled
tests / tests (ubuntu-latest, 3.10) (push) Has been cancelled
tests / tests (ubuntu-latest, 3.11) (push) Has been cancelled
tests / tests (ubuntu-latest, 3.12) (push) Has been cancelled
tests / tests (ubuntu-latest, 3.13) (push) Has been cancelled
tests / tests (windows-latest, 3.10) (push) Has been cancelled
tests / tests (windows-latest, 3.11) (push) Has been cancelled
tests / tests (windows-latest, 3.12) (push) Has been cancelled
tests / tests (windows-latest, 3.13) (push) Has been cancelled
Secret Leaks / trufflehog (push) Has been cancelled
CI security linting / zizmor latest via Cargo (push) Has been cancelled
88 lines
3.0 KiB
YAML
88 lines
3.0 KiB
YAML
name: Build Docker images (scheduled)
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
workflow_call:
|
|
schedule:
|
|
- cron: "0 1 * * *"
|
|
|
|
concurrency:
|
|
group: docker-image-builds
|
|
cancel-in-progress: false
|
|
|
|
permissions: {}
|
|
|
|
env:
|
|
CI_SLACK_CHANNEL: ${{ secrets.CI_DOCKER_CHANNEL }}
|
|
|
|
jobs:
|
|
latest-cpu:
|
|
name: "Latest Peft CPU [dev]"
|
|
# GH Environment for extra protection: https://github.com/huggingface/peft/settings/environments
|
|
environment: branch-protection-main
|
|
runs-on:
|
|
group: aws-general-8-plus
|
|
steps:
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
|
|
- name: Check out code
|
|
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
with:
|
|
persist-credentials: false
|
|
- name: Login to DockerHub
|
|
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
|
|
|
- name: Build and Push CPU
|
|
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0
|
|
with:
|
|
context: ./docker/peft-cpu
|
|
push: true
|
|
tags: huggingface/peft-cpu
|
|
|
|
- name: Post to Slack
|
|
if: always()
|
|
uses: huggingface/hf-workflows/.github/actions/post-slack@3f88d63d3761558a32e8e46fc2a8536e04bb2aea # main from Feb 2025-02-24
|
|
with:
|
|
slack_channel: ${{ env.CI_SLACK_CHANNEL }}
|
|
title: 🤗 Results of the PEFT-CPU docker build
|
|
status: ${{ job.status }}
|
|
slack_token: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }}
|
|
|
|
latest-cuda:
|
|
name: "Latest Peft GPU [dev]"
|
|
# GH Environment for extra protection: https://github.com/huggingface/peft/settings/environments
|
|
environment: branch-protection-main
|
|
runs-on:
|
|
group: aws-general-8-plus
|
|
steps:
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
|
|
- name: Check out code
|
|
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
with:
|
|
persist-credentials: false
|
|
- name: Login to DockerHub
|
|
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
|
|
|
- name: Build and Push GPU
|
|
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0
|
|
with:
|
|
context: ./docker/peft-gpu
|
|
push: true
|
|
tags: huggingface/peft-gpu
|
|
|
|
- name: Post to Slack
|
|
if: always()
|
|
uses: huggingface/hf-workflows/.github/actions/post-slack@3f88d63d3761558a32e8e46fc2a8536e04bb2aea # main from Feb 2025-02-24
|
|
with:
|
|
slack_channel: ${{ env.CI_SLACK_CHANNEL }}
|
|
title: 🤗 Results of the PEFT-GPU docker build
|
|
status: ${{ job.status }}
|
|
slack_token: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }}
|