Migrate to gitea-actions + add deno to runtime
All checks were successful
ci / docker (push) Successful in 3m34s

This commit is contained in:
2025-11-12 15:31:41 +01:00
parent 2c5b7765a0
commit 48fb26046c
3 changed files with 18 additions and 35 deletions

View File

@@ -1,35 +0,0 @@
kind: pipeline
type: docker
name: default
steps:
- name: publish
image: plugins/docker
settings:
repo: klmp200/radio-bullshit
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
branch: main
event: push
- name: deploy
image: appleboy/drone-ssh
environment:
SSH_PASSWORD:
from_secret: ssh_password
settings:
host:
from_secret: ssh_host
username:
from_secret: ssh_username
password:
from_secret: ssh_password
envs: [ SSH_PASSWORD ]
script:
- echo $SSH_PASSWORD | sudo -S systemctl restart radio-bullshit
when:
branch: main
event: push

View File

@@ -0,0 +1,14 @@
name: ci
on:
push:
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Build and push
uses: docker/build-push-action@v6
with:
push: false
tags: klmp200/radio-bullshit:latest

View File

@@ -19,6 +19,10 @@ COPY next_song.py /opt
COPY yt_sync.py /opt
COPY ultrasync.sh /opt
RUN curl -fsSL https://deno.land/install.sh | sh
ENV DENO_INSTALL="/$HOME/.deno"
ENV PATH="$DENO_INSTALL/bin:$PATH"
RUN chmod +x /opt/yt_sync.py /opt/next_song.py /opt/ultrasync.sh
RUN mkdir -p /songs /jingles /air-support /var/log/icecast