Compare commits
17 commits
Author | SHA1 | Date | |
---|---|---|---|
|
b5a83f0d34 | ||
|
ec79d22df7 | ||
|
50302c8dc2 | ||
|
23bcbbf1e6 | ||
|
b3b1876b82 | ||
|
7b71a8a574 | ||
|
86ba4f2039 | ||
|
f3286ca8f3 | ||
|
73410dbee5 | ||
|
5570721dd8 | ||
|
6d61515b7a | ||
|
379117d976 | ||
|
bc8565fd96 | ||
|
702c86dba1 | ||
|
9590839b75 | ||
|
d274df35d8 | ||
|
35ff610c0d |
12 changed files with 71 additions and 287 deletions
1
.github/FUNDING.yml
vendored
1
.github/FUNDING.yml
vendored
|
@ -1 +0,0 @@
|
|||
ko_fi: varken
|
31
.github/ISSUE_TEMPLATE/bug_report.md
vendored
31
.github/ISSUE_TEMPLATE/bug_report.md
vendored
|
@ -1,31 +0,0 @@
|
|||
---
|
||||
name: Bug report
|
||||
about: Create a report to help us improve
|
||||
title: "[BUG]"
|
||||
labels: awaiting-triage
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
**Describe the bug**
|
||||
A clear and concise description of what the bug is.
|
||||
|
||||
**To Reproduce**
|
||||
Steps to reproduce the behavior:
|
||||
1. ...
|
||||
2. ...
|
||||
3. ...
|
||||
4. ...
|
||||
|
||||
**Expected behavior**
|
||||
A clear and concise description of what you expected to happen.
|
||||
|
||||
**Screenshots**
|
||||
If applicable, add screenshots to help explain your problem.
|
||||
|
||||
**Environment (please complete the following information):**
|
||||
- OS: [e.g. Ubuntu 18.04.1 or Docker:Tag]
|
||||
- Version [e.g. v1.1]
|
||||
|
||||
**Additional context**
|
||||
Add any other context about the problem here.
|
20
.github/ISSUE_TEMPLATE/feature_request.md
vendored
20
.github/ISSUE_TEMPLATE/feature_request.md
vendored
|
@ -1,20 +0,0 @@
|
|||
---
|
||||
name: Feature request
|
||||
about: Suggest an idea for this project
|
||||
title: "[Feature Request]"
|
||||
labels: awaiting-triage
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
**Is your feature request related to a problem? Please describe.**
|
||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||
|
||||
**Describe the solution you'd like**
|
||||
A clear and concise description of what you want to happen.
|
||||
|
||||
**Describe alternatives you've considered**
|
||||
A clear and concise description of any alternative solutions or features you've considered.
|
||||
|
||||
**Additional context**
|
||||
Add any other context or screenshots about the feature request here.
|
|
@ -1,23 +0,0 @@
|
|||
name: 'Docker Multi Login Action'
|
||||
description: 'Log in to dockerhub, quay, and github container registry'
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- shell: bash
|
||||
run: |
|
||||
echo "🔑 Logging into dockerhub..."
|
||||
if docker login --username ${{ fromJSON(env.secrets).DOCKERHUB_USERNAME }} --password ${{ fromJSON(env.secrets).DOCKERHUB_PASSWORD }} > /dev/null 2>&1; then
|
||||
echo "🎉 Login Succeeded!"
|
||||
fi
|
||||
- shell: bash
|
||||
run: |
|
||||
echo "🔑 Logging into quay.io..."
|
||||
if docker login quay.io --username ${{ fromJSON(env.secrets).QUAY_USERNAME }} --password ${{ fromJSON(env.secrets).QUAY_PASSWORD }} > /dev/null 2>&1; then
|
||||
echo "🎉 Login Succeeded!"
|
||||
fi
|
||||
- shell: bash
|
||||
run: |
|
||||
echo "🔑 Logging into ghcr.io..."
|
||||
if docker login ghcr.io --username ${{ fromJSON(env.secrets).GHCR_USERNAME }} --password ${{ fromJSON(env.secrets).GHCR_PASSWORD }} > /dev/null 2>&1; then
|
||||
echo "🎉 Login Succeeded!"
|
||||
fi
|
|
@ -1,46 +0,0 @@
|
|||
name: 'Docker Target Image List Generator'
|
||||
description: 'A Github Action to generate a list of fully qualified target images for docker related steps'
|
||||
inputs:
|
||||
registries:
|
||||
description: "Comma separated list of docker registries"
|
||||
required: false
|
||||
default: "docker.io,quay.io,ghcr.io"
|
||||
images:
|
||||
description: "Comma separated list of images"
|
||||
required: true
|
||||
tags:
|
||||
description: "Comma separated list of image tags"
|
||||
required: false
|
||||
default: "edge"
|
||||
outputs:
|
||||
fully-qualified-target-images:
|
||||
description: "List of fully qualified docker target images"
|
||||
value: ${{ steps.gen-fqti.outputs.fully-qualified-target-images }}
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Generate fully qualified docker target images
|
||||
id: gen-fqti
|
||||
shell: bash
|
||||
run: |
|
||||
IFS=',' read -r -a registries <<< "${{ inputs.registries }}"
|
||||
IFS=',' read -r -a images <<< "${{ inputs.images }}"
|
||||
IFS=',' read -r -a tags <<< "${{ inputs.tags }}"
|
||||
FQTI=""
|
||||
echo "Generating fully qualified docker target images for:"
|
||||
echo "🐋 Registries: ${#registries[@]}"
|
||||
echo "📷 Images: ${#images[@]}"
|
||||
echo "🏷️ Tags: ${#tags[@]}"
|
||||
echo "🧮 Total: $((${#registries[@]}*${#images[@]}*${#tags[@]}))"
|
||||
for registry in "${registries[@]}"; do
|
||||
for image in "${images[@]}"; do
|
||||
for tag in "${tags[@]}"; do
|
||||
if [ -z "$FQTI" ]; then
|
||||
FQTI="${registry}/${image}:${tag}"
|
||||
else
|
||||
FQTI="$FQTI,${registry}/${image}:${tag}"
|
||||
fi
|
||||
done
|
||||
done
|
||||
done
|
||||
echo ::set-output name=fully-qualified-target-images::${FQTI}
|
116
.github/workflows/docker.yaml
vendored
116
.github/workflows/docker.yaml
vendored
|
@ -1,116 +0,0 @@
|
|||
name: varken
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 10 * * *'
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- develop
|
||||
tags:
|
||||
- 'v*.*.*'
|
||||
paths:
|
||||
- '.github/workflows/docker.yaml'
|
||||
- 'varken/**'
|
||||
- 'Varken.py'
|
||||
- 'Dockerfile'
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
- develop
|
||||
paths:
|
||||
- '.github/workflows/docker.yaml'
|
||||
- 'varken/**'
|
||||
- 'Varken.py'
|
||||
- 'Dockerfile'
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
tag:
|
||||
description: 'Use this tag instead of most recent'
|
||||
required: false
|
||||
ignore-existing-tag:
|
||||
description: 'Ignore existing tag if "true"'
|
||||
required: false
|
||||
env:
|
||||
IMAGES: boerderij/varken
|
||||
PLATFORMS: "linux/amd64,linux/arm64,linux/arm/v7"
|
||||
jobs:
|
||||
lint-and-test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.x'
|
||||
- name: Lint
|
||||
run: pip install flake8 && flake8 --max-line-length 120 Varken.py varken/*.py
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
needs: lint-and-test
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Prepare
|
||||
id: prep
|
||||
run: |
|
||||
VERSION=edge
|
||||
if [[ $GITHUB_REF == refs/tags/* ]]; then
|
||||
VERSION=${GITHUB_REF#refs/tags/v}
|
||||
fi
|
||||
if [ "${{ github.event_name }}" = "schedule" ]; then
|
||||
VERSION=nightly
|
||||
fi
|
||||
if [[ ${GITHUB_REF##*/} == "develop" ]]; then
|
||||
VERSION=develop
|
||||
fi
|
||||
TAGS="${VERSION}"
|
||||
if [[ $VERSION =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
|
||||
TAGS="$TAGS,latest"
|
||||
fi
|
||||
echo ::set-output name=version::${VERSION}
|
||||
echo ::set-output name=tags::${TAGS}
|
||||
echo ::set-output name=branch::${GITHUB_REF##*/}
|
||||
echo ::set-output name=build_date::$(date -u +'%Y-%m-%dT%H:%M:%SZ')
|
||||
echo ::set-output name=vcs_ref::${GITHUB_SHA::8}
|
||||
- uses: ./.github/actions/docker-target-image-list-action
|
||||
name: Generate Target Images
|
||||
id: gen-tags
|
||||
with:
|
||||
images: ${{ env.IMAGES }}
|
||||
tags: ${{ steps.prep.outputs.tags }}
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
with:
|
||||
platforms: ${{ env.PLATFORMS }}
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
with:
|
||||
install: true
|
||||
version: latest
|
||||
driver-opts: image=moby/buildkit:master
|
||||
- name: Docker Multi Login
|
||||
uses: ./.github/actions/docker-multi-login-action
|
||||
env:
|
||||
secrets: ${{ toJSON(secrets) }}
|
||||
- name: Build and Push
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
platforms: ${{ env.PLATFORMS }}
|
||||
pull: true
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
tags: ${{ steps.gen-tags.outputs.fully-qualified-target-images }}
|
||||
build-args: |
|
||||
VERSION=${{ steps.prep.outputs.version }}
|
||||
BRANCH=${{ steps.prep.outputs.branch }}
|
||||
BUILD_DATE=${{ steps.prep.outputs.build_date }}
|
||||
VCS_REF=${{ steps.prep.outputs.vcs_ref }}
|
||||
- name: Inspect
|
||||
if: ${{ github.event_name != 'pull_request' }}
|
||||
run: |
|
||||
IFS=',' read -r -a images <<< "${{ steps.gen-tags.outputs.fully-qualified-target-images }}"
|
||||
for image in "${images[@]}"; do
|
||||
docker buildx imagetools inspect ${image}
|
||||
done
|
41
.github/workflows/docker.yml
vendored
Normal file
41
.github/workflows/docker.yml
vendored
Normal file
|
@ -0,0 +1,41 @@
|
|||
name: Publish Docker Containers
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
IMAGE_NAME: ${{ github.repository }}
|
||||
|
||||
jobs:
|
||||
build_and_publish_docker:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
ref: ${{ github.ref }}
|
||||
|
||||
- name: Log in to the Container registry
|
||||
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Extract metadata for base Docker
|
||||
id: base_meta
|
||||
uses: docker/metadata-action@v2
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||
tags: |
|
||||
type=ref,event=branch
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: ${{ steps.base_meta.outputs.tags }}
|
||||
labels: ${{ steps.base_meta.outputs.labels }}
|
19
.github/workflows/invalid_template.yml
vendored
19
.github/workflows/invalid_template.yml
vendored
|
@ -1,19 +0,0 @@
|
|||
name: 'Invalid Template'
|
||||
|
||||
on:
|
||||
issues:
|
||||
types: [labeled, unlabeled, reopened]
|
||||
|
||||
jobs:
|
||||
support:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: dessant/support-requests@v2
|
||||
with:
|
||||
github-token: ${{ github.token }}
|
||||
support-label: 'invalid:template-incomplete'
|
||||
issue-comment: >
|
||||
:wave: @{issue-author}, please edit your issue and follow the template provided.
|
||||
close-issue: false
|
||||
lock-issue: false
|
||||
issue-lock-reason: 'resolved'
|
25
.github/workflows/support.yml
vendored
25
.github/workflows/support.yml
vendored
|
@ -1,25 +0,0 @@
|
|||
name: 'Support Request'
|
||||
|
||||
on:
|
||||
issues:
|
||||
types: [labeled, unlabeled, reopened]
|
||||
|
||||
jobs:
|
||||
support:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: dessant/support-requests@v2
|
||||
with:
|
||||
github-token: ${{ github.token }}
|
||||
support-label: 'support'
|
||||
issue-comment: >
|
||||
:wave: @{issue-author}, we use the issue tracker exclusively
|
||||
for bug reports and feature requests. However, this issue appears
|
||||
to be a support request. Please use our support channels
|
||||
to get help with Varken!
|
||||
|
||||
- [Discord](https://discord.gg/VjZ6qSM)
|
||||
- [Discord Quick Access](http://cyborg.decreator.dev/channels/518970285773422592/530424560504537105/)
|
||||
close-issue: true
|
||||
lock-issue: false
|
||||
issue-lock-reason: 'off-topic'
|
26
CHANGELOG.md
26
CHANGELOG.md
|
@ -1,5 +1,29 @@
|
|||
# Change Log
|
||||
|
||||
## [v1.7.7](https://github.com/Boerderij/Varken/tree/v1.7.7) (2020-12-21)
|
||||
[Full Changelog](https://github.com/Boerderij/Varken/compare/1.7.6...v1.7.7)
|
||||
|
||||
**Implemented enhancements:**
|
||||
- \[Enhancement\] Ombi 4.0 compatibility [\#186](https://github.com/Boerderij/Varken/issues/186)
|
||||
([samwiseg0](https://github.com/samwiseg0))
|
||||
|
||||
**Merged pull requests:**
|
||||
|
||||
- v1.7.7 Merge [\#191](https://github.com/Boerderij/Varken/pull/191)
|
||||
([DirtyCajunRice](https://github.com/DirtyCajunRice))
|
||||
- Type Error fix [\#177](https://github.com/Boerderij/Varken/pull/177)
|
||||
([derek-miller](https://github.com/derek-miller))
|
||||
|
||||
**Fixed bugs:**
|
||||
|
||||
- \[BUG\] Influxdb exit code [\#174](https://github.com/Boerderij/Varken/issues/174)
|
||||
([samwiseg0](https://github.com/samwiseg0))
|
||||
|
||||
**Notes:**
|
||||
- Now built via github actions
|
||||
- Available on ghcr, quay.io, and dockerhub
|
||||
- Nightly builds done to accommodate dependabot MRs
|
||||
|
||||
## [v1.7.6](https://github.com/Boerderij/Varken/tree/v1.7.6) (2020-01-01)
|
||||
[Full Changelog](https://github.com/Boerderij/Varken/compare/1.7.5...v1.7.6)
|
||||
|
||||
|
@ -350,4 +374,4 @@
|
|||
- Create crontabs [\#6](https://github.com/Boerderij/Varken/pull/6) ([ghost](https://github.com/ghost))
|
||||
- update plex\_dashboard.json [\#5](https://github.com/Boerderij/Varken/pull/5) ([ghost](https://github.com/ghost))
|
||||
- Update README.md [\#4](https://github.com/Boerderij/Varken/pull/4) ([ghost](https://github.com/ghost))
|
||||
- added sickrage portion [\#3](https://github.com/Boerderij/Varken/pull/3) ([ghost](https://github.com/ghost))
|
||||
- added sickrage portion [\#3](https://github.com/Boerderij/Varken/pull/3) ([ghost](https://github.com/ghost))
|
||||
|
|
|
@ -8,11 +8,11 @@ ENV DEBUG="True" \
|
|||
|
||||
LABEL maintainer="dirtycajunrice,samwiseg0" \
|
||||
org.opencontainers.image.created=$BUILD_DATE \
|
||||
org.opencontainers.image.url="https://github.com/Boerderij/Varken" \
|
||||
org.opencontainers.image.source="https://github.com/Boerderij/Varken" \
|
||||
org.opencontainers.image.url="https://github.com/d-mcknight/Varken" \
|
||||
org.opencontainers.image.source="https://github.com/d-mcknight/Varken" \
|
||||
org.opencontainers.image.version=$VERSION \
|
||||
org.opencontainers.image.revision=$VCS_REF \
|
||||
org.opencontainers.image.vendor="boerderij" \
|
||||
org.opencontainers.image.vendor="d-mcknight" \
|
||||
org.opencontainers.image.title="varken" \
|
||||
org.opencontainers.image.description="Varken is a standalone application to aggregate data from the Plex ecosystem into InfluxDB using Grafana for a frontend" \
|
||||
org.opencontainers.image.licenses="MIT"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<img width="800" src="https://raw.githubusercontent.com/Boerderij/Varken/master/assets/varken_full_banner.jpg" alt="Logo Banner">
|
||||
</p>
|
||||
|
||||
[](https://gitlab.com/boerderij/Varken/commits/master)
|
||||
[](https://github.com/Boerderij/Varken/actions?query=workflow%3Avarken)
|
||||
[](https://discord.gg/VjZ6qSM)
|
||||
[](https://ko-fi.com/varken)
|
||||
[](https://microbadger.com/images/boerderij/varken)
|
||||
|
@ -58,4 +58,4 @@ do not include database creation, please ensure you create an influx database
|
|||
named `varken`
|
||||
|
||||
### Grafana
|
||||
[Grafana Installation/Dashboard Documentation](https://wiki.cajun.pro/books/varken/page/grafana)
|
||||
[Grafana Installation/Dashboard Documentation](https://wiki.cajun.pro/books/varken/page/grafana)
|
||||
|
|
Loading…
Reference in a new issue