automated update: 2026-06-10 20:51:44
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "docker"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
name: Lint Python
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Run Ruff
|
||||
uses: astral-sh/ruff-action@v3
|
||||
with:
|
||||
args: "check" # Can change to "check --fix" to automatically fix issues
|
||||
|
||||
@@ -1,23 +1,22 @@
|
||||
name: Release
|
||||
name: Create GitHub Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
tags: [ 'v*' ]
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
description: "Version to release (e.g. 0.1.0)"
|
||||
description: 'Version to release (e.g., 1.0.0)'
|
||||
required: true
|
||||
default: "0.1.0"
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: Create GitHub Release
|
||||
name: Create GitHub Release & Build Image
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write # Needed for creating releases
|
||||
packages: write # Needed for pushing to GHCR
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
@@ -80,3 +79,20 @@ jobs:
|
||||
draft: false,
|
||||
prerelease: false,
|
||||
});
|
||||
|
||||
- name: Log in to GHCR
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: |
|
||||
ghcr.io/sudolulo/if-curator-headless:latest
|
||||
ghcr.io/sudolulo/if-curator-headless:${{ steps.tag.outputs.TAG }}
|
||||
|
||||
|
||||
+4
-3
@@ -20,14 +20,15 @@ RUN curl -LsSf https://astral.sh/uv/install.sh | sh \
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Clone your specific repo
|
||||
# Clone your repo (ensure this repo has the updated cli.py locally!)
|
||||
RUN git clone --depth 1 https://github.com/sudolulo/if_curator_headless.git . \
|
||||
&& uv sync --extra gpu \
|
||||
&& uv add croniter \
|
||||
&& uv cache clean
|
||||
|
||||
# Permissions for entrypoint
|
||||
RUN chmod +x entrypoint.sh
|
||||
# Copy helper scripts
|
||||
COPY entrypoint.sh scheduler.py /app/
|
||||
RUN chmod +x /app/entrypoint.sh
|
||||
|
||||
# Setup non-root user and persistent model paths
|
||||
RUN groupadd -g 568 apps \
|
||||
|
||||
Reference in New Issue
Block a user