revamp deployment
This commit is contained in:
58
.github/workflows/beta-docker.yml
vendored
Normal file
58
.github/workflows/beta-docker.yml
vendored
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
name: Beta Docker Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- beta
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docker:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Calculate beta version
|
||||||
|
id: calculate_version
|
||||||
|
run: |
|
||||||
|
# Get the latest tag
|
||||||
|
LATEST_TAG=$(git tag | grep -v 'beta' | sort -V | tail -n1)
|
||||||
|
echo "Found latest tag: ${LATEST_TAG}"
|
||||||
|
|
||||||
|
# Split the version
|
||||||
|
IFS='.' read -r -a VERSION_PARTS <<< "$LATEST_TAG"
|
||||||
|
MAJOR="${VERSION_PARTS[0]}"
|
||||||
|
MINOR="${VERSION_PARTS[1]}"
|
||||||
|
PATCH="${VERSION_PARTS[2]}"
|
||||||
|
|
||||||
|
# Increment patch version
|
||||||
|
NEW_PATCH=$((PATCH + 1))
|
||||||
|
BETA_VERSION="${MAJOR}.${MINOR}.${NEW_PATCH}"
|
||||||
|
|
||||||
|
echo "Calculated beta version: ${BETA_VERSION}"
|
||||||
|
echo "beta_version=${BETA_VERSION}" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
|
- 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 beta Docker image
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
|
push: true
|
||||||
|
tags: cy01/blackhole:beta
|
||||||
|
build-args: |
|
||||||
|
VERSION=${{ env.beta_version }}
|
||||||
|
CHANNEL=beta
|
||||||
69
.github/workflows/docker.yml
vendored
69
.github/workflows/docker.yml
vendored
@@ -1,69 +0,0 @@
|
|||||||
name: Docker Build and Push
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
- beta
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
docker:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Get version
|
|
||||||
id: get_version
|
|
||||||
run: |
|
|
||||||
LATEST_TAG=$(git tag | sort -V | tail -n1)
|
|
||||||
echo "latest_tag=${LATEST_TAG}" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Set channel
|
|
||||||
id: set_channel
|
|
||||||
run: |
|
|
||||||
if [[ ${{ github.ref }} == 'refs/heads/beta' ]]; then
|
|
||||||
echo "CHANNEL=beta" >> $GITHUB_ENV
|
|
||||||
else
|
|
||||||
echo "CHANNEL=stable" >> $GITHUB_ENV
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@v3
|
|
||||||
|
|
||||||
- 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 for beta branch
|
|
||||||
if: github.ref == 'refs/heads/beta'
|
|
||||||
uses: docker/build-push-action@v5
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
|
||||||
push: true
|
|
||||||
tags: cy01/blackhole:beta
|
|
||||||
build-args: |
|
|
||||||
VERSION=${{ env.latest_tag }}
|
|
||||||
CHANNEL=${{ env.CHANNEL }}
|
|
||||||
|
|
||||||
- name: Build and push for main branch
|
|
||||||
if: github.ref == 'refs/heads/main'
|
|
||||||
uses: docker/build-push-action@v5
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
|
||||||
push: true
|
|
||||||
tags: |
|
|
||||||
cy01/blackhole:latest
|
|
||||||
cy01/blackhole:${{ env.latest_tag }}
|
|
||||||
build-args: |
|
|
||||||
VERSION=${{ env.latest_tag }}
|
|
||||||
CHANNEL=${{ env.CHANNEL }}
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
name: Release
|
name: GoReleaser
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -16,20 +16,12 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: '1.22'
|
go-version: '1.22'
|
||||||
|
|
||||||
- name: Set Release Channel
|
|
||||||
run: |
|
|
||||||
if [[ ${{ github.ref }} == refs/tags/beta* ]]; then
|
|
||||||
echo "RELEASE_CHANNEL=beta" >> $GITHUB_ENV
|
|
||||||
else
|
|
||||||
echo "RELEASE_CHANNEL=stable" >> $GITHUB_ENV
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Run GoReleaser
|
- name: Run GoReleaser
|
||||||
uses: goreleaser/goreleaser-action@v5
|
uses: goreleaser/goreleaser-action@v5
|
||||||
with:
|
with:
|
||||||
@@ -37,4 +29,5 @@ jobs:
|
|||||||
version: latest
|
version: latest
|
||||||
args: release --clean
|
args: release --clean
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
RELEASE_CHANNEL: stable
|
||||||
46
.github/workflows/release-docker.yml
vendored
Normal file
46
.github/workflows/release-docker.yml
vendored
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
name: Release Docker Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docker:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Get tag name
|
||||||
|
id: get_tag
|
||||||
|
run: |
|
||||||
|
TAG_NAME=${GITHUB_REF#refs/tags/}
|
||||||
|
echo "tag_name=${TAG_NAME}" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
|
- 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 release Docker image
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
cy01/blackhole:latest
|
||||||
|
cy01/blackhole:${{ env.tag_name }}
|
||||||
|
build-args: |
|
||||||
|
VERSION=${{ env.tag_name }}
|
||||||
|
CHANNEL=stable
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
### DecyphArr(Qbittorent, but with Debrid Proxy Support)
|
### DecyphArr(Qbittorent, but with Debrid Support)
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
@@ -35,7 +35,7 @@ This is an implementation of QbitTorrent with a **Multiple Debrid service suppor
|
|||||||
- Torbox Support
|
- Torbox Support
|
||||||
- Debrid Link Support
|
- Debrid Link Support
|
||||||
- Multi-Debrid Providers support
|
- Multi-Debrid Providers support
|
||||||
- Repair Worker for missing files (**NEW**)
|
- Repair Worker for missing files (**BETA**)
|
||||||
|
|
||||||
The proxy is useful for filtering out un-cached Debrid torrents
|
The proxy is useful for filtering out un-cached Debrid torrents
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user