Migrate to gitea-actions + add deno to runtime
All checks were successful
ci / docker (push) Successful in 3m34s
All checks were successful
ci / docker (push) Successful in 3m34s
This commit is contained in:
35
.drone.yml
35
.drone.yml
@@ -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
|
|
||||||
14
.gitea/workflows/docker.yaml
Normal file
14
.gitea/workflows/docker.yaml
Normal 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
|
||||||
@@ -19,6 +19,10 @@ COPY next_song.py /opt
|
|||||||
COPY yt_sync.py /opt
|
COPY yt_sync.py /opt
|
||||||
COPY ultrasync.sh /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 chmod +x /opt/yt_sync.py /opt/next_song.py /opt/ultrasync.sh
|
||||||
|
|
||||||
RUN mkdir -p /songs /jingles /air-support /var/log/icecast
|
RUN mkdir -p /songs /jingles /air-support /var/log/icecast
|
||||||
|
|||||||
Reference in New Issue
Block a user