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:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags: [ 'v*' ]
|
||||||
- "v*"
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
version:
|
version:
|
||||||
description: "Version to release (e.g. 0.1.0)"
|
description: 'Version to release (e.g., 1.0.0)'
|
||||||
required: true
|
required: true
|
||||||
default: "0.1.0"
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
name: Create GitHub Release
|
name: Create GitHub Release & Build Image
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write # Needed for creating releases
|
||||||
|
packages: write # Needed for pushing to GHCR
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -80,3 +79,20 @@ jobs:
|
|||||||
draft: false,
|
draft: false,
|
||||||
prerelease: 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
|
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 . \
|
RUN git clone --depth 1 https://github.com/sudolulo/if_curator_headless.git . \
|
||||||
&& uv sync --extra gpu \
|
&& uv sync --extra gpu \
|
||||||
&& uv add croniter \
|
&& uv add croniter \
|
||||||
&& uv cache clean
|
&& uv cache clean
|
||||||
|
|
||||||
# Permissions for entrypoint
|
# Copy helper scripts
|
||||||
RUN chmod +x entrypoint.sh
|
COPY entrypoint.sh scheduler.py /app/
|
||||||
|
RUN chmod +x /app/entrypoint.sh
|
||||||
|
|
||||||
# Setup non-root user and persistent model paths
|
# Setup non-root user and persistent model paths
|
||||||
RUN groupadd -g 568 apps \
|
RUN groupadd -g 568 apps \
|
||||||
|
|||||||
Reference in New Issue
Block a user