chore: remove empty github workflows directory
This commit is contained in:
50
.github/workflows/build_CPU.yml
vendored
50
.github/workflows/build_CPU.yml
vendored
@@ -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
|
||||
39
.github/workflows/build_GPU.yml
vendored
39
.github/workflows/build_GPU.yml
vendored
@@ -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 }}
|
||||
55
.github/workflows/calver.yml
vendored
55
.github/workflows/calver.yml
vendored
@@ -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
|
||||
Reference in New Issue
Block a user