Skip to content

Commit 49a81ea

Browse files
meisnate12actions-user
authored andcommitted
[2] update workflows and add no-verify-ssl (#73)
1 parent e9a42ee commit 49a81ea

14 files changed

Lines changed: 86 additions & 42 deletions

.github/.wordlist.txt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
Dockerfile
2-
Dockerhub
1+
dockerfile
32
dockerfiles
3+
dockerhub
44
env
5-
Kometa
6-
Plex
5+
kometa
6+
plex
77
repo
8-
TMDb
9-
URl
8+
ssl
9+
tmdb
10+
url
1011
walkthroughs

.github/workflows/docker-develop.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ jobs:
3232
id: buildx
3333
uses: docker/setup-buildx-action@v3
3434

35-
- name: Build and push
35+
- name: Build and Push
3636
id: docker_build
3737
uses: docker/build-push-action@v6
3838
with:
3939
context: ./
4040
file: ./Dockerfile
4141
build-args: |
4242
"BRANCH_NAME=develop"
43-
platforms: linux/amd64,linux/arm64
43+
platforms: linux/amd64,linux/arm64,linux/arm/v7
4444
push: true
4545
tags: ${{ vars.DOCKER_TEAM }}/${{ vars.DOCKER_REPO }}:develop
4646
cache-from: type=gha
@@ -83,7 +83,7 @@ jobs:
8383
uses: Kometa-Team/discord-notifications@master
8484
with:
8585
webhook_id_token: ${{ secrets.DEVELOP_WEBHOOK }}
86-
title: Commits
86+
title: ${{ vars.TEXT_COMMITS }}
8787
message: "${{ vars.DEVELOP_ROLE }} - An update to ${{ vars.NAME }} has been published and is available to users of the **develop** branch."
8888
commits: "true"
8989
color: ${{ vars.COLOR_SUCCESS }}

.github/workflows/docker-latest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ jobs:
2828
id: buildx
2929
uses: docker/setup-buildx-action@v3
3030

31-
- name: Build and push
31+
- name: Build and Push
3232
id: docker_build
3333
uses: docker/build-push-action@v6
3434
with:
3535
context: ./
3636
file: ./Dockerfile
37-
platforms: linux/amd64,linux/arm64
37+
platforms: linux/amd64,linux/arm64,linux/arm/v7
3838
push: true
3939
tags: ${{ vars.DOCKER_TEAM }}/${{ vars.DOCKER_REPO }}:latest
4040
cache-from: type=gha

.github/workflows/docker-version.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ jobs:
3636
id: get_version
3737
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
3838

39-
- name: Build and push
39+
- name: Build and Push
4040
id: docker_build
4141
uses: docker/build-push-action@v6
4242
with:
4343
context: ./
4444
file: ./Dockerfile
45-
platforms: linux/amd64,linux/arm64
45+
platforms: linux/amd64,linux/arm64,linux/arm/v7
4646
push: true
4747
tags: ${{ vars.DOCKER_TEAM }}/${{ vars.DOCKER_REPO }}:${{ steps.get_version.outputs.VERSION }}
4848
cache-from: type=gha

.github/workflows/increment-build.yml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -186,22 +186,9 @@ jobs:
186186
title: ${{ vars.NAME }} ${{ needs.increment-build.outputs.version }} Build ${{ needs.increment-build.outputs.build-value }}
187187
url: https://github.com/Kometa-Team/${{ vars.REPO_NAME }}/commit/${{ needs.increment-build.outputs.commit-hash }}
188188
description: ${{ needs.increment-build.outputs.commit-msg }}
189-
message: "<@&1079103365604184074> - An update to ${{ vars.NAME }} has been published and is available to users of the **develop** branch."
189+
message: "${{ vars.DEVELOP_ROLE }} - An update to ${{ vars.NAME }} has been published and is available to users of the **develop** branch."
190190
color: ${{ vars.COLOR_SUCCESS }}
191191
username: ${{ vars.BOT_NAME }}
192192
avatar_url: ${{ vars.BOT_IMAGE }}
193193
author: ${{ vars.NAME }} Develop Release
194194
author_icon_url: ${{ vars.RELEASE_IMAGE }}
195-
196-
cleanup-tags:
197-
runs-on: ubuntu-latest
198-
needs: [ increment-build, verify-changes, docker-build-develop, commit-notification ]
199-
if: ${{ success() }}
200-
steps:
201-
- name: remove tag
202-
run: |
203-
HUB_TOKEN=$(curl -s -H "Content-Type: application/json" -X POST -d "{\"username\": \"${{ secrets.DOCKER_HUB_USERNAME }}\", \"password\": \"${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}\"}" https://hub.docker.com/v2/users/login/ | jq -r .token)
204-
curl -i -X DELETE \
205-
-H "Accept: application/json" \
206-
-H "Authorization: JWT $HUB_TOKEN" \
207-
https://hub.docker.com/v2/repositories/${{ vars.DOCKER_TEAM }}/${{ vars.DOCKER_REPO }}/tags/${{ needs.increment-build.outputs.pr-tag }}/

.github/workflows/release-notification.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
release: true
1919
title: Release VERSION
2020
message: "${{ vars.MASTER_ROLE }} - A new version of ${{ vars.NAME }} has been released and is available to all users"
21+
color: ${{ vars.COLOR_SUCCESS }}
2122
username: ${{ vars.BOT_NAME }}
2223
avatar_url: ${{ vars.BOT_IMAGE }}
2324
author: ${{ vars.NAME }} Release

.github/workflows/tag-cleanup.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Tag Cleanup
2+
3+
on:
4+
pull_request_target:
5+
types: [closed, unlabeled]
6+
7+
jobs:
8+
9+
tag-cleanup:
10+
runs-on: ubuntu-latest
11+
if: github.event.action == 'closed' || contains(github.event.pull_request.labels.*.name, 'docker') == false
12+
steps:
13+
14+
- name: Get Tag Name
15+
id: get-tag-name
16+
run: |
17+
branch_name=${{ github.event.pull_request.head.ref }}
18+
repo_name=${{ github.event.pull_request.head.repo.full_name }}
19+
base_name="${repo_name%/*}"
20+
if [[ "${branch_name}" =~ ^(master|develop|nightly)$ ]]; then
21+
tag_name="${base_name}"
22+
else
23+
tag_name="${branch_name}"
24+
fi
25+
echo "tag-name=${tag_name}" >> $GITHUB_OUTPUT
26+
27+
- name: remove tag
28+
run: |
29+
HUB_TOKEN=$(curl -s -H "Content-Type: application/json" -X POST -d "{\"username\": \"${{ secrets.DOCKER_HUB_USERNAME }}\", \"password\": \"${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}\"}" https://hub.docker.com/v2/users/login/ | jq -r .token)
30+
curl -i -X DELETE \
31+
-H "Accept: application/json" \
32+
-H "Authorization: JWT $HUB_TOKEN" \
33+
https://hub.docker.com/v2/repositories/${{ vars.DOCKER_TEAM }}/${{ vars.DOCKER_REPO }}/tags/${{ steps.get-tag-name.outputs.tag_name }}/

.github/workflows/validate-pull.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,20 @@ jobs:
5555
fi
5656
done
5757
58-
- name: Run Spellcheck
59-
uses: rojopolis/spellcheck-github-actions@0.45.0
58+
- name: Get all changed files
59+
uses: tj-actions/changed-files@v45
60+
id: changed_files
61+
with:
62+
files: |
63+
**.md
64+
CHANGELOG
65+
66+
- name: Run Spellcheck on changed files
67+
id: spellcheck
68+
uses: rojopolis/spellcheck-github-actions@0.46.0
69+
with:
70+
task_name: Markdown
71+
source_files: ${{ steps.changed_files.outputs.all_changed_files }}
6072

6173
docker-build-pull:
6274
runs-on: ubuntu-latest

.spellcheck.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ matrix:
55
- 'CHANGELOG'
66
aspell:
77
lang: en
8+
ignore-case: true
89
dictionary:
910
wordlists:
1011
- .github/.wordlist.txt

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
FROM python:3.11-slim-buster
22
ARG BRANCH_NAME=master
3-
ENV BRANCH_NAME ${BRANCH_NAME}
4-
ENV TINI_VERSION v0.19.0
5-
ENV KOMETA_DOCKER True
6-
COPY . /
3+
ENV BRANCH_NAME=${BRANCH_NAME}
4+
ENV TINI_VERSION=v0.19.0
5+
ENV KOMETA_DOCKER=True
6+
COPY requirements.txt requirements.txt
77
RUN echo "**** install system packages ****" \
88
&& apt-get update \
99
&& apt-get upgrade -y --no-install-recommends \
@@ -19,5 +19,6 @@ RUN echo "**** install system packages ****" \
1919
&& apt-get -f install \
2020
&& apt-get autoclean \
2121
&& rm -rf /requirements.txt /tmp/* /var/tmp/* /var/lib/apt/lists/*
22+
COPY . /
2223
VOLUME /config
2324
ENTRYPOINT ["/tini", "-s", "python3", "overlay_reset.py", "--"]

0 commit comments

Comments
 (0)