diff --git a/.github/workflows/build-docker-image.yml b/.github/workflows/build-docker-image.yml index dde5ce5..5b7e1d6 100644 --- a/.github/workflows/build-docker-image.yml +++ b/.github/workflows/build-docker-image.yml @@ -40,8 +40,6 @@ jobs: type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}} type=sha - # List of custom labels - # labels: # optional - name: Docker Setup QEMU uses: docker/setup-qemu-action@v2.1.0 @@ -84,15 +82,15 @@ jobs: password: ${{ secrets.DOCKERHUB_TOKEN }} repository: ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.APP_NAME }} short-description: | - a web interface to manage your torrents on Real-Debrid, AllDebrid or Premiumize. + A web interface to manage your torrents on debrid providers. readme-filepath: ./README-DOCKER.md - # - name: Github Registry Description - # if: ${{ env.ENABLE_GHCR == 1 }} - # uses: peter-evans/dockerhub-description@v3.3.0 - # with: - # username: ${{ github.repository_owner }} - # password: ${{ secrets.GITHUB_TOKEN }} - # short-description: | - # A web interface to manage your torrents on Real-Debrid, AllDebrid or Premiumize. - # readme-filepath: ./README-DOCKER.md + - name: Github Registry Description + if: ${{ env.ENABLE_GHCR == 1 }} + uses: peter-evans/dockerhub-description@v3.3.0 + with: + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + short-description: | + A web interface to manage your torrents on Real-Debrid, AllDebrid or Premiumize. + readme-filepath: ./README-DOCKER.md diff --git a/.github/workflows/build-release.yaml b/.github/workflows/build-release.yaml index 0d08afa..4bcdd03 100644 --- a/.github/workflows/build-release.yaml +++ b/.github/workflows/build-release.yaml @@ -6,8 +6,6 @@ on: - v* permissions: - id-token: write - contents: write packages: write jobs: @@ -29,57 +27,6 @@ jobs: - name: Test Backend working-directory: server run: dotnet test - - version: - name: Increment version - needs: test - runs-on: ubuntu-latest - - outputs: - version: ${{ steps.increment-version.outputs.version }} - - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Increment latest version tag - id: increment-version - run: | - # Retry mechanism - $maxRetries = 5 - $retryDelay = 5 - $attempt = 0 - $success = $false - while ($attempt -lt $maxRetries -and -not $success) { - try { - git fetch --tags - $tags = git tag --sort=-v:refname | Where-Object { $_ -match '^v\d+\.\d+\.\d+$' } - $latestTag = $tags -split '\n' | Select-Object -First 1 - $versionNumbers = $latestTag -split '\.' - $versionNumbers[-1] = [string]([int]$versionNumbers[-1] + 1) - $newVersion = $versionNumbers -join '.' - Write-Output "New incremented version is $newVersion" - echo "version=$newVersion" | Out-File -Append -FilePath $Env:GITHUB_OUTPUT - git tag $newVersion - git push origin $newVersion - $success = $true - Write-Output "Tag $newVersion pushed successfully!" - } catch { - Write-Output "Failed to push tag $newVersion. Attempt $($attempt + 1) of $maxRetries." - Write-Output "Error details: $($_.Exception.Message)" - $attempt++ - if ($attempt -lt $maxRetries) { - Write-Output "Retrying in $retryDelay seconds..." - Start-Sleep -Seconds $retryDelay - } else { - Write-Error "Failed to push tag $newVersion after $maxRetries attempts. Exiting." - exit 1 - } - } - } - shell: pwsh release: name: Create GitHub release