Fixing issues with latest version of qbittorrent (#1)
Continuous Integration / docker (push) Successful in 21s
Continuous Integration / docker (push) Successful in 21s
Reviewed-on: #1 Co-authored-by: Dawson <dawson@funkemunky.cc> Co-committed-by: Dawson <dawson@funkemunky.cc>
This commit was merged in pull request #1.
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
name: Continuous Integration
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Load variables
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
GITEA_URL="${GITHUB_SERVER_URL}"
|
||||
REGISTRY="$(printf '%s\n' "$GITEA_URL" | sed -E 's#^https?://##; s#/$##')"
|
||||
REPO_FULL="${GITHUB_REPOSITORY}"
|
||||
|
||||
echo "GITEA_URL=$GITEA_URL"
|
||||
echo "REGISTRY=$REGISTRY"
|
||||
echo "REPO_FULL=$REPO_FULL"
|
||||
|
||||
{
|
||||
echo "GITEA_URL=$GITEA_URL"
|
||||
echo "REGISTRY=$REGISTRY"
|
||||
echo "REPO_FULL=$REPO_FULL"
|
||||
} >> "$GITHUB_ENV"
|
||||
- name: Behavior confirm
|
||||
shell: bash
|
||||
run: |
|
||||
echo "Registry in env: ${{ env.REGISTRY }}"
|
||||
- name: Login to Gitea Container Registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ vars.PACKAGE_USERNAME }}
|
||||
password: ${{ secrets.PACKAGE_SECRET }}
|
||||
- name: Extract metadata (tags, labels) for Docker
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: |
|
||||
${{ env.REGISTRY }}/${{ env.REPO_FULL }}
|
||||
tags: |
|
||||
type=raw,value=latest,enable={{is_default_branch}}
|
||||
type=sha,prefix=
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
Reference in New Issue
Block a user