Skip to content

Commit e31071b

Browse files
committed
feat: update docker and pipeline
- Add workflow to publish to GHCR - Add workflow to build Docker image - Add zap2xmlrc config example - Update Dockerfile to run continuously
0 parents  commit e31071b

15 files changed

+1805
-0
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @jef

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: jef
2+
custom: ["https://www.paypal.me/jxf"]

.github/ISSUE_TEMPLATE/bug-remote.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: 🐛 Bug report
3+
about: Report a bug for this project
4+
---
5+
6+
## Expected Behavior
7+
8+
<!-- Tell us what should happen -->
9+
10+
## Current Behavior
11+
12+
<!-- Tell us what happens instead of the expected behavior -->
13+
14+
## Steps to Reproduce
15+
16+
<!-- Provide a link to a live example, or an unambiguous set of steps to reproduce this bug. -->
17+
<!-- Include code to reproduce, if relevant -->
18+
19+
## Environment
20+
21+
- OS:
22+
23+
</details>
24+
25+
## Logs
26+
27+
<!-- Provide a brief log -->
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
name: 🚀 Feature request
3+
about: Suggest a new idea
4+
---
5+
6+
### Description
7+
8+
<!-- Describe the feature here. -->
9+
10+
### Possible solution
11+
12+
<!-- Describe the possible solution here. -->

.github/pull_request_template.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!-- Please use Conventional Commits to label your title -->
2+
<!-- https://www.conventionalcommits.org/en/v1.0.0/ -->
3+
<!-- Example: feat: allow provided config object to extend other configs -->
4+
5+
### Description
6+
7+
<!-- Fixes #(issue) -->
8+
<!-- Please also include relevant motivation and context. -->
9+
10+
### Testing
11+
12+
<!-- Please describe the tests that you ran to verify your changes. -->
13+
<!-- Provide instructions so we can reproduce. -->
14+
<!-- Please also list any relevant details for your test configuration -->
15+
16+
### New dependencies
17+
18+
<!-- List any dependencies that are required for this change. -->
19+
<!-- Otherwise, delete section. -->

.github/workflows/ci.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Continuous Integration
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
jobs:
7+
build:
8+
name: Build
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v2
13+
- name: Build service
14+
run: docker build .
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Nightly Release
2+
on:
3+
schedule:
4+
- cron: '0 0 * * *'
5+
workflow_dispatch: {}
6+
jobs:
7+
build-release:
8+
name: Build and release Docker image
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v2
13+
- name: Login into GitHub Container Registry
14+
run: echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
15+
- name: Build Docker image
16+
run: |
17+
docker build \
18+
-t "ghcr.io/${GITHUB_REPOSITORY}:${GITHUB_SHA:0:7}" \
19+
-t "ghcr.io/${GITHUB_REPOSITORY}:nightly" .
20+
- name: Release Docker image
21+
run: |
22+
docker push "ghcr.io/${GITHUB_REPOSITORY}:${GITHUB_SHA:0:7}"
23+
docker push "ghcr.io/${GITHUB_REPOSITORY}:nightly"

.github/workflows/release.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
build-tag-release:
8+
name: Build, tag, and release Docker image
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v2
13+
- name: Setup release please
14+
uses: google-github-actions/release-please-action@v2
15+
id: release
16+
with:
17+
token: ${{ secrets.GITHUB_TOKEN }}
18+
release-type: simple
19+
changelog-path: CHANGELOG.md
20+
package-name: zap2xml
21+
- name: Login into GitHub Container Registry
22+
if: ${{ steps.release.outputs.release_created }}
23+
run: echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
24+
- name: Build Docker image
25+
if: ${{ steps.release.outputs.release_created }}
26+
run: |
27+
docker build \
28+
-t "ghcr.io/${GITHUB_REPOSITORY}:${{ steps.release.outputs.tag_name }}" \
29+
-t "ghcr.io/${GITHUB_REPOSITORY}:latest" .
30+
- name: Release Docker image
31+
if: ${{ steps.release.outputs.release_created }}
32+
run: |
33+
docker push "ghcr.io/${GITHUB_REPOSITORY}:${{ steps.release.outputs.tag_name }}"
34+
docker push "ghcr.io/${GITHUB_REPOSITORY}:latest"

.zap2xmlrc-example

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
start=0
2+
days=7
3+
ncdays=0
4+
ncsdays=0
5+
ncmday=-1
6+
retries=3
7+
user=user
8+
pass=password
9+
cache=/config/cache
10+
icon=/config/icons
11+
trailer=/config/trailers
12+
lang=en
13+
proxy=http://localhost:8080
14+
outfile=/xmltv/xmltv.xml
15+
outformat=xmltv (or 'xtvd')
16+
lineuptype=type (xtvd only - Cable/CableDigital/Satellite/LocalBroadcast)
17+
lineupname=name (xtvd only)
18+
lineuplocation=location (xtvd only)
19+
lineupid=X:80000
20+
postalcode=01010

CHANGELOG.md

Whitespace-only changes.

0 commit comments

Comments
 (0)