27 Commits
Author SHA1 Message Date
pierre geeraert 3ff4f98841 fixed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 3s
2026-10-13 23:50:43 +01:00
pi-ux-ce 0a8c337b1e Merge pull request 'Testing' (#51) from testing into main
Dockerfile runner / Explore-Gitea-Actions (push) Failing after 3m38s
Reviewed-on: #51
2026-10-13 22:49:30 +00:00
pierre geeraert 2dac0d1f53 remove tryton reference 2026-10-13 23:48:38 +01:00
pierre geeraert 73b627214d remove tryton reference
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 3s
2026-10-13 23:46:42 +01:00
pierre geeraert c79168453b remove tryton reference
Dockerfile testing runner / Explore-Gitea-Actions (push) Failing after 3m17s
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 4s
2026-10-13 23:46:13 +01:00
pi-ux-ce 299f72abca remove gitea.tryton reference
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 4s
2026-10-13 20:35:52 +00:00
pi-ux-ce 058125f0b1 Merge pull request 'Testing' (#50) from testing into main
Dockerfile runner / Explore-Gitea-Actions (push) Successful in 6m23s
Reviewed-on: http://gitea.geeraert.eu/pi-ux-ce/Django_kube/pulls/50
2026-10-03 22:28:35 +00:00
pierre geeraert 130b0af8d8 redirect to streaming
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
2026-10-03 23:17:27 +01:00
pierre geeraert 6f7542ef27 change image format
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
2026-10-03 22:01:02 +01:00
pi-ux-ce 672edccd70 Merge pull request 'poster integration' (#48) from testing into main
Dockerfile runner / Explore-Gitea-Actions (push) Successful in 2m0s
Reviewed-on: http://gitea.geeraert.eu/pi-ux-ce/Django_kube/pulls/48
2026-09-17 21:44:13 +00:00
pi-ux-ce 44b730dbfc Merge pull request 'more pretty' (#47) from testing into main
Dockerfile runner / Explore-Gitea-Actions (push) Successful in 48s
Reviewed-on: http://gitea.geeraert.eu/pi-ux-ce/Django_kube/pulls/47
2026-09-15 10:40:20 +00:00
pi-ux-ce 3b3e82f16a Merge pull request 'change timezone to London' (#46) from testing into main
Dockerfile runner / Explore-Gitea-Actions (push) Successful in 44s
Reviewed-on: http://gitea.geeraert.eu/pi-ux-ce/Django_kube/pulls/46
2026-09-15 10:25:57 +00:00
pi-ux-ce e3f01da175 Merge pull request 'freeze period in place' (#45) from testing into main
Dockerfile runner / Explore-Gitea-Actions (push) Successful in 42s
Reviewed-on: http://gitea.geeraert.eu/pi-ux-ce/Django_kube/pulls/45
2026-09-14 15:50:44 +00:00
pi-ux-ce 3cb09b34da Merge pull request 'add import export' (#44) from testing into main
Dockerfile runner / Explore-Gitea-Actions (push) Successful in 44s
Reviewed-on: http://gitea.geeraert.eu/pi-ux-ce/Django_kube/pulls/44
2026-09-11 10:27:24 +00:00
pi-ux-ce df7340e578 Merge pull request 'Testing' (#43) from testing into main
Dockerfile runner / Explore-Gitea-Actions (push) Successful in 2m39s
Reviewed-on: http://gitea.geeraert.eu/pi-ux-ce/Django_kube/pulls/43
2026-09-11 09:23:12 +00:00
pi-ux-ce 57f58b0c9a Merge pull request 'Testing' (#42) from testing into main
Dockerfile runner / Explore-Gitea-Actions (push) Successful in 57s
Reviewed-on: http://gitea.geeraert.eu/pi-ux-ce/Django_kube/pulls/42
2026-09-09 13:40:43 +00:00
pi-ux-ce 189f81d95b Merge pull request 'change workflow name' (#41) from testing into main
Dockerfile runner / Explore-Gitea-Actions (push) Successful in 46s
Reviewed-on: http://gitea.geeraert.eu/pi-ux-ce/Django_kube/pulls/41
2026-09-07 09:58:56 +00:00
pi-ux-ce 1a9ea98202 Merge pull request 'setup the clearkey' (#40) from testing into main
Dockerfile runner / Explore-Gitea-Actions (push) Successful in 47s
Reviewed-on: http://gitea.geeraert.eu/pi-ux-ce/Django_kube/pulls/40
2026-09-07 09:51:31 +00:00
pi-ux-ce b834ff10bf Merge pull request 'Update django_code/apps/streaming/utils.py' (#39) from testing into main
Dockerfile runner / Explore-Gitea-Actions (push) Successful in 47s
Reviewed-on: http://gitea.geeraert.eu/pi-ux-ce/Django_kube/pulls/39
2026-09-05 22:10:42 +00:00
pi-ux-ce 7804dd5993 Merge pull request 'clickable links' (#35) from testing into main
Dockerfile runner / Explore-Gitea-Actions (push) Successful in 53s
Reviewed-on: http://gitea.tryton.geeraert.eu/pi-ux-ce/Django_kube/pulls/35
2026-09-04 14:59:38 +00:00
pi-ux-ce 56ccc83903 Merge pull request 'Testing' (#34) from testing into main
Dockerfile runner / Explore-Gitea-Actions (push) Successful in 1m58s
Reviewed-on: http://gitea.geeraert.eu/pi-ux-ce/Django_kube/pulls/34
2026-09-03 09:08:40 +00:00
pi-ux-ce 1629715732 Merge pull request 'Testing' (#32) from testing into main
Dockerfile runner / Explore-Gitea-Actions (push) Successful in 1m1s
Reviewed-on: http://gitea.geeraert.eu/pi-ux-ce/Django_kube/pulls/32
2026-09-02 12:02:28 +00:00
pi-ux-ce d3a835e3fb Merge pull request 'Testing' (#31) from testing into main
Dockerfile runner / Explore-Gitea-Actions (push) Successful in 50s
Reviewed-on: http://gitea.geeraert.eu/pi-ux-ce/Django_kube/pulls/31
2026-09-02 11:47:22 +00:00
pi-ux-ce 145e55df92 Merge pull request 'Testing' (#30) from testing into main
Dockerfile runner / Explore-Gitea-Actions (push) Successful in 2m19s
Reviewed-on: http://gitea.geeraert.eu/pi-ux-ce/Django_kube/pulls/30
2026-08-27 13:27:32 +00:00
pi-ux-ce 533567b31d Merge pull request 'Testing' (#29) from testing into main
Dockerfile runner / Explore-Gitea-Actions (push) Successful in 2m9s
Reviewed-on: http://gitea.tryton.geeraert.eu/pi-ux-ce/Django_kube/pulls/29
2026-08-26 10:15:44 +00:00
pi-ux-ce b438956e96 Merge pull request 'Testing' (#28) from testing into main
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 3m29s
Reviewed-on: http://gitea.geeraert.eu/pi-ux-ce/Django_kube/pulls/28
2026-08-26 08:39:23 +00:00
pi-ux-ce 90cb797d2e Merge pull request 'testing' (#27) from testing into main
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7m5s
Reviewed-on: #27
2026-08-05 14:30:37 +00:00
9 changed files with 45 additions and 29 deletions
+9 -9
View File
@@ -15,9 +15,9 @@ jobs:
env: env:
RUNNER_TOOL_CACHE: /toolcache RUNNER_TOOL_CACHE: /toolcache
DEBUG: True DEBUG: True
ALLOWED_HOSTS: "django.tryton.geeraert.eu" ALLOWED_HOSTS: "django.geeraert.eu"
container: container:
image: gitea.tryton.geeraert.eu/pi-ux-ce/custom-runner-debian-slim:1.0.6 image: gitea.geeraert.eu/pi-ux-ce/custom-runner-debian-slim:1.0.6
volumes: volumes:
- act-toolcache:/opt/hostedtoolcache # this is where Runner store their cache default - act-toolcache:/opt/hostedtoolcache # this is where Runner store their cache default
runs-on: host-runner runs-on: host-runner
@@ -59,7 +59,7 @@ jobs:
- name: Login to gitea - name: Login to gitea
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: gitea.tryton.geeraert.eu registry: gitea.geeraert.eu
username: ${{ secrets.USERNAME_GITEA }} username: ${{ secrets.USERNAME_GITEA }}
password: ${{ secrets.PASSWORD_GITEA }} password: ${{ secrets.PASSWORD_GITEA }}
@@ -67,16 +67,16 @@ jobs:
run: | run: |
docker build \ docker build \
-f infra/production/dockerfile \ -f infra/production/dockerfile \
--build-arg ALLOWED_HOSTS='django.tryton.geeraert.eu' \ --build-arg ALLOWED_HOSTS='django.geeraert.eu' \
--build-arg DEBUG='True' \ --build-arg DEBUG='True' \
-t gitea.tryton.geeraert.eu/pi-ux-ce/django-python:latest \ -t gitea.geeraert.eu/pi-ux-ce/django-python:latest \
-t gitea.tryton.geeraert.eu/pi-ux-ce/django-python:${{ env.next_version }} \ -t gitea.geeraert.eu/pi-ux-ce/django-python:${{ env.next_version }} \
. .
- name: Push image - name: Push image
run: | run: |
docker push gitea.tryton.geeraert.eu/pi-ux-ce/django-python:latest docker push gitea.geeraert.eu/pi-ux-ce/django-python:latest
docker push gitea.tryton.geeraert.eu/pi-ux-ce/django-python:${{ env.next_version }} docker push gitea.geeraert.eu/pi-ux-ce/django-python:${{ env.next_version }}
- name: Rollout Django to force pulling the new image - name: Rollout Django to force pulling the new image
uses: actions-hub/kubectl@master uses: actions-hub/kubectl@master
@@ -91,7 +91,7 @@ jobs:
run: | run: |
curl -X PUT -H "Content-Type: application/json" \ curl -X PUT -H "Content-Type: application/json" \
--user ${{ secrets.USERNAME_GITEA }}:${{ secrets.PASSWORD_GITEA }} \ --user ${{ secrets.USERNAME_GITEA }}:${{ secrets.PASSWORD_GITEA }} \
https://gitea.tryton.geeraert.eu/api/v1/repos/pi-ux-ce/${{ github.event.repository.name }}/actions/variables/VERSION \ https://gitea.geeraert.eu/api/v1/repos/pi-ux-ce/${{ github.event.repository.name }}/actions/variables/VERSION \
-d "{\"Value\":\"$next_version\"}" -d "{\"Value\":\"$next_version\"}"
- name: backup git for future use - name: backup git for future use
@@ -36,7 +36,7 @@ jobs:
- name: Login to gitea - name: Login to gitea
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: gitea.tryton.geeraert.eu registry: gitea.geeraert.eu
username: ${{ secrets.USERNAME_GITEA }} username: ${{ secrets.USERNAME_GITEA }}
password: ${{ secrets.PASSWORD_GITEA }} password: ${{ secrets.PASSWORD_GITEA }}
@@ -44,23 +44,23 @@ jobs:
run: | run: |
docker build \ docker build \
-f infra/testing/dockerfile \ -f infra/testing/dockerfile \
--build-arg ALLOWED_HOSTS='django-testing.tryton.geeraert.eu' \ --build-arg ALLOWED_HOSTS='django-testing.geeraert.eu' \
--build-arg DEBUG='True' \ --build-arg DEBUG='True' \
--build-arg CACHE_BUST=${{ env.next_version }} \ --build-arg CACHE_BUST=${{ env.next_version }} \
-t gitea.tryton.geeraert.eu/pi-ux-ce/django-testing:latest \ -t gitea.geeraert.eu/pi-ux-ce/django-testing:latest \
-t gitea.tryton.geeraert.eu/pi-ux-ce/django-testing:${{ env.next_version }} \ -t gitea.geeraert.eu/pi-ux-ce/django-testing:${{ env.next_version }} \
. .
- name: Push image - name: Push image
run: | run: |
docker push gitea.tryton.geeraert.eu/pi-ux-ce/django-testing:latest docker push gitea.geeraert.eu/pi-ux-ce/django-testing:latest
docker push gitea.tryton.geeraert.eu/pi-ux-ce/django-testing:${{ env.next_version }} docker push gitea.geeraert.eu/pi-ux-ce/django-testing:${{ env.next_version }}
- name: update version in the variable - name: update version in the variable
run: | run: |
curl -X PUT -H "Content-Type: application/json" \ curl -X PUT -H "Content-Type: application/json" \
--user ${{ secrets.USERNAME_GITEA }}:${{ secrets.PASSWORD_GITEA }} \ --user ${{ secrets.USERNAME_GITEA }}:${{ secrets.PASSWORD_GITEA }} \
https://gitea.tryton.geeraert.eu/api/v1/repos/pi-ux-ce/${{ github.event.repository.name }}/actions/variables/VERSION_TESTING \ https://gitea.geeraert.eu/api/v1/repos/pi-ux-ce/${{ github.event.repository.name }}/actions/variables/VERSION_TESTING \
-d "{\"Value\":\"$next_version\"}" -d "{\"Value\":\"$next_version\"}"
- name: Rollout Django to force pulling the new image - name: Rollout Django to force pulling the new image
+2 -2
View File
@@ -72,14 +72,14 @@ export bitwarden_organization_id=""
``` ```
cd existing_repo cd existing_repo
git remote add origin https://gitlab.tryton.geeraert.eu/pierre/django_kube.git git remote add origin https://gitea.geeraert.eu/pi-ux-ce/Django_kube.git
git branch -M main git branch -M main
git push -uf origin main git push -uf origin main
``` ```
## Integrate with your tools ## Integrate with your tools
- [ ] [Set up project integrations](https://gitlab.tryton.geeraert.eu/pierre/django_kube/-/settings/integrations) - [ ] [Set up project integrations](https://gitlab.geeraert.eu/pierre/django_kube/-/settings/integrations)
## Collaborate with your team ## Collaborate with your team
+2 -2
View File
@@ -12,9 +12,9 @@ class bitwardenUtils():
client = BitwardenClient( client = BitwardenClient(
client_settings_from_dict( client_settings_from_dict(
{ {
"apiUrl": os.getenv("API_URL", "https://bitwarden.tryton.geeraert.eu/api"), "apiUrl": os.getenv("API_URL", "https://bitwarden.geeraert.eu/api"),
"deviceType": DeviceType.SDK, "deviceType": DeviceType.SDK,
"identityUrl": os.getenv("IDENTITY_URL", "https://bitwarden.tryton.geeraert.eu/identity"), "identityUrl": os.getenv("IDENTITY_URL", "https://bitwarden.geeraert.eu/identity"),
"userAgent": "Python", "userAgent": "Python",
} }
) )
@@ -62,7 +62,7 @@ def nodes(request):
'spec': { 'spec': {
'containers': [{ 'containers': [{
'image': 'gitea.tryton.geeraert.eu/pi-ux-ce/bitwarden_cli:1.0.1', 'image': 'gitea.geeraert.eu/pi-ux-ce/bitwarden_cli:1.0.1',
# 'pod-running-timeout': '5m0s', # 'pod-running-timeout': '5m0s',
'name': 'testpython', 'name': 'testpython',
'env': [ 'env': [
@@ -96,7 +96,7 @@ def backup_job(request):
'spec': { 'spec': {
'containers': [{ 'containers': [{
'image': 'gitea.tryton.geeraert.eu/pi-ux-ce/bitwarden_cli:1.0.1', 'image': 'gitea.geeraert.eu/pi-ux-ce/bitwarden_cli:1.0.1',
'name': 'testpython', 'name': 'testpython',
'command': ['/bin/sh -c /config/export_bitwarden.sh'], 'command': ['/bin/sh -c /config/export_bitwarden.sh'],
'env': [ 'env': [
@@ -124,8 +124,8 @@ def backup_job_yaml(request,sync_target):
v1 = client.BatchV1Api() v1 = client.BatchV1Api()
yaml_location = { yaml_location = {
"synology" : "https://gitea.tryton.geeraert.eu/pi-ux-ce/Backup_kube/raw/branch/main/Infrequent_access/synology_pod.yaml", "synology" : "https://gitea.geeraert.eu/pi-ux-ce/Backup_kube/raw/branch/main/Infrequent_access/synology_pod.yaml",
"openmediavault":"https://gitea.tryton.geeraert.eu/pi-ux-ce/Backup_kube/raw/branch/main/Infrequent_access/openmediavault_pod.yaml" "openmediavault":"https://gitea.geeraert.eu/pi-ux-ce/Backup_kube/raw/branch/main/Infrequent_access/openmediavault_pod.yaml"
} }
print(yaml_location[sync_target]) print(yaml_location[sync_target])
url_to_select=yaml_location[sync_target] url_to_select=yaml_location[sync_target]
+17 -1
View File
@@ -2,11 +2,25 @@ from django.contrib import admin
from django.utils.html import format_html from django.utils.html import format_html
from .models import StreamingSiteTestingData,StreamingRedirectData from .models import StreamingSiteTestingData,StreamingRedirectData
from .utils import full_testing from .utils import full_testing
from apps.website_redirection.utils import redirect_method
from urllib.parse import urlsplit, urlunsplit from urllib.parse import urlsplit, urlunsplit
from core.admin import UniversalModelAdmin from core.admin import UniversalModelAdmin
@admin.action(description="Add this show to streaming")
def re_redirect(modeladmin, request, queryset):
output_generated = ""
for query in queryset.values():
print(query)
key = "streaming"
value = query.get('url_display')
output_generated = output_generated + redirect_method(key,value)+";"
modeladmin.message_user(
request,
output_generated
)
@admin.action(description="check the URLs") @admin.action(description="check the URLs")
def check(modeladmin, request, queryset): def check(modeladmin, request, queryset):
for query in queryset: for query in queryset:
@@ -61,6 +75,8 @@ class streamingAdmin(UniversalModelAdmin):
@admin.register(StreamingRedirectData) @admin.register(StreamingRedirectData)
class StreamingRedirectAdmin(UniversalModelAdmin): class StreamingRedirectAdmin(UniversalModelAdmin):
list_display = ['name','image_tag','season','episode','randomViewing','clickable_links','addedDate','alias'] list_display = ['name','image_tag','season','episode','randomViewing','clickable_links','addedDate','alias']
actions = [re_redirect]
#fields = ['name','season','episode','url_example','prefix','infix','suffix','alias','randomViewing','seasonInformation'] #fields = ['name','season','episode','url_example','prefix','infix','suffix','alias','randomViewing','seasonInformation']
fieldsets = ( fieldsets = (
( (
@@ -81,4 +97,4 @@ class StreamingRedirectAdmin(UniversalModelAdmin):
link_field = 'url_display' link_field = 'url_display'
def image_tag(self,obj): def image_tag(self,obj):
return format_html('<img src="{0}" style="width: 300px; height:200px;" />'.format(obj.poster_url)) return format_html('<img src="{0}" style="width: 355px; height:200px;" />'.format(obj.poster_url))
+1 -1
View File
@@ -21,7 +21,7 @@ class StreamingRedirectData(models.Model):
name = models.CharField(primary_key=True,max_length=1000, help_text="Name of the show") name = models.CharField(primary_key=True,max_length=1000, help_text="Name of the show")
season = models.IntegerField(null=False,default=1) season = models.IntegerField(null=False,default=1)
episode = models.IntegerField(null=False,default=0) episode = models.IntegerField(null=False,default=0)
url_display = models.CharField(max_length=1000, help_text="https://www.1shows.org/tv/456-the-simpsons?streaming=true&season=18&episode=5",blank=True, null=True) url_display = models.CharField(max_length=1000, help_text="https://streaming.geeraert.eu/office",blank=True, null=True)
prefix = models.CharField(max_length=1000, help_text="https://www.1shows.org/tv/456-the-simpsons?streaming=true&season=",blank=True, null=True) prefix = models.CharField(max_length=1000, help_text="https://www.1shows.org/tv/456-the-simpsons?streaming=true&season=",blank=True, null=True)
infix = models.CharField(max_length=1000, help_text="&episode=",blank=True, null=True) infix = models.CharField(max_length=1000, help_text="&episode=",blank=True, null=True)
suffix = models.CharField(max_length=1000, help_text="" ,blank=True, null=True) suffix = models.CharField(max_length=1000, help_text="" ,blank=True, null=True)
+1 -1
View File
@@ -1,7 +1,7 @@
FROM python:3.12 FROM python:3.12
ENV PYTHONUNBUFFERED 1 ENV PYTHONUNBUFFERED 1
#ENV ALLOWED_HOSTS 'django.tryton.geeraert.eu' #ENV ALLOWED_HOSTS 'django.geeraert.eu'
#ENV DEBUG 'True' #ENV DEBUG 'True'
ARG ALLOWED_HOSTS ARG ALLOWED_HOSTS
+2 -2
View File
@@ -4,7 +4,7 @@ FROM python:3.12
MAINTAINER pi-ux-ce MAINTAINER pi-ux-ce
ENV PYTHONUNBUFFERED 1 ENV PYTHONUNBUFFERED 1
ENV ALLOWED_HOSTS 'django-testing.tryton.geeraert.eu' ENV ALLOWED_HOSTS 'django-testing.geeraert.eu'
ENV DEBUG 'True' ENV DEBUG 'True'
WORKDIR /code/ WORKDIR /code/
@@ -20,7 +20,7 @@ RUN apt-get update && \
# image silently keeps stale code. # image silently keeps stale code.
ARG CACHE_BUST=1 ARG CACHE_BUST=1
RUN echo "cache bust: ${CACHE_BUST}" && \ RUN echo "cache bust: ${CACHE_BUST}" && \
git clone --depth 1 -b testing https://gitea.tryton.geeraert.eu/pi-ux-ce/Django_kube.git . git clone --depth 1 -b testing https://gitea.geeraert.eu/pi-ux-ce/Django_kube.git .
RUN pip install --cache-dir=/opt/hostedtoolcache/pip --upgrade pip RUN pip install --cache-dir=/opt/hostedtoolcache/pip --upgrade pip
RUN pip list --cache-dir=/opt/hostedtoolcache/pip --outdated RUN pip list --cache-dir=/opt/hostedtoolcache/pip --outdated