From b7628ab3162e659b3bd2fe3b57891dbb33ccd659 Mon Sep 17 00:00:00 2001 From: Dasemu Date: Fri, 16 Jan 2026 17:05:40 +0100 Subject: [PATCH] chore: remove empty github workflows directory --- .github/workflows/build_CPU.yml | 50 ------------------------------ .github/workflows/build_GPU.yml | 39 ----------------------- .github/workflows/calver.yml | 55 --------------------------------- 3 files changed, 144 deletions(-) delete mode 100644 .github/workflows/build_CPU.yml delete mode 100644 .github/workflows/build_GPU.yml delete mode 100644 .github/workflows/calver.yml diff --git a/.github/workflows/build_CPU.yml b/.github/workflows/build_CPU.yml deleted file mode 100644 index a077fe7..0000000 --- a/.github/workflows/build_CPU.yml +++ /dev/null @@ -1,50 +0,0 @@ -name: Build_Subgen_Dockerfile_CPU - -on: - push: - paths: - - 'requirements.txt' - - 'Dockerfile.cpu' - workflow_dispatch: - -jobs: - docker: - runs-on: ubuntu-latest - strategy: - fail-fast: false - - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Get version from transcriptarr.py - id: get_version - run: | - version=$(grep -oP "subgen_version\s*=\s*'\K[^']+" subgen.py) - echo "version=$version" >> $GITHUB_ENV - - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - with: - #platforms: all - image: tonistiigi/binfmt:qemu-v7.0.0 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Login to Docker Hub - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Build and push CPU Docker image - uses: docker/build-push-action@v5 - with: - context: . - platforms: linux/amd64,linux/arm64 - file: ./Dockerfile.cpu - push: true - tags: | - mccloud/subgen:cpu - mccloud/subgen:${{ env.version }}-cpu diff --git a/.github/workflows/build_GPU.yml b/.github/workflows/build_GPU.yml deleted file mode 100644 index 32d83db..0000000 --- a/.github/workflows/build_GPU.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: Build_Subgen_Dockerfile_GPU - -on: - push: - paths: - - 'requirements.txt' - - 'Dockerfile' - workflow_dispatch: - -jobs: - docker: - runs-on: [self-hosted] - - steps: - - name: Checkout code - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: Get version from transcriptarr.py - id: get_version - run: | - version=$(grep -oP "subgen_version\s*=\s*'\K[^']+" subgen.py) - echo "version=$version" >> $GITHUB_ENV - - - name: Login to Docker Hub - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Build and push GPU Docker image - uses: docker/build-push-action@v5 - with: - context: . - push: true - tags: | - mccloud/subgen:latest - mccloud/subgen:${{ env.version }} diff --git a/.github/workflows/calver.yml b/.github/workflows/calver.yml deleted file mode 100644 index 209f355..0000000 --- a/.github/workflows/calver.yml +++ /dev/null @@ -1,55 +0,0 @@ -name: Update_CalVer_Amend - -on: - push: - branches: - - 'main' - paths: - - '../../transcriptarr.py' - workflow_dispatch: # Allow manual triggering - -jobs: - docker: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 - with: - fetch-depth: 0 # Crucial for getting full history - - - name: Calculate version - id: version - run: | - YEAR=$(date +%Y) - MONTH=$(date +%m) - COMMIT_COUNT=$(git rev-list --count HEAD --since="$YEAR-$MONTH-01") - echo "COMMIT_COUNT=$COMMIT_COUNT" - echo "VERSION=${YEAR}.${MONTH}.${COMMIT_COUNT}" >> $GITHUB_ENV - - - name: Update transcriptarr.py with version - run: | - sed -i "s/subgen_version =.*/subgen_version = '${{ env.VERSION }}'/" subgen.py - - - name: Check if transcriptarr.py was actually changed (compare with HEAD) - id: check_change - run: | - if git diff --quiet HEAD subgen.py; then - echo "::set-output name=changed::false" - else - echo "::set-output name=changed::true" - fi - - - name: Amend commit if transcriptarr.py changed - if: steps.check_change.outputs.changed == 'true' - env: - GIT_AUTHOR_NAME: "McCloudS" - GIT_AUTHOR_EMAIL: "scott@mccloud.dev" - run: | - git config user.name "${GIT_AUTHOR_NAME}" - git config user.email "${GIT_AUTHOR_EMAIL}" - - git add subgen.py - git commit --amend --reuse-message=HEAD --author="${GIT_AUTHOR_NAME} <${GIT_AUTHOR_EMAIL}>" # Amend the last commit - - # Push with force-with-lease (safer than --force) - git push --force-with-lease origin HEAD:main