3 Commits

Author SHA1 Message Date
4d7b3cd8ce chore(deps): update dependency eslint-plugin-vue to v9.33.0 2025-06-07 07:05:08 +00:00
ngn
2dabf74007 add submodules option to docker workflow
All checks were successful
docker / docker (push) Successful in 1m57s
ups / ups (push) Successful in 39s
Signed-off-by: ngn <ngn@ngn.tf>
2025-05-13 00:17:26 +03:00
ngn
f71f0e9ab7 add ups workflow and config
Some checks failed
docker / docker (push) Failing after 1m43s
Signed-off-by: ngn <ngn@ngn.tf>
2025-05-12 23:08:30 +03:00
5 changed files with 4946 additions and 143 deletions

View File

@ -1,30 +1,36 @@
name: Build and publish the docker image
name: docker
on:
push:
branches: ["custom"]
branches:
- 'main'
paths-ignore:
- 'README.md'
- 'LICENSE.txt'
- 'docker-compose.example.yml'
- 'ups.json'
env:
REGISTRY: git.ngn.tf
IMAGE: ${{gitea.repository}}
jobs:
build:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: "https://github.com/actions/checkout@v4"
uses: actions/checkout@v4
with:
submodules: true
- name: Login to container repo
uses: "https://github.com/docker/login-action@v1"
uses: docker/login-action@v1
with:
registry: ${{env.REGISTRY}}
username: ${{gitea.actor}}
password: ${{secrets.PACKAGES_TOKEN}}
- name: Build image
- name: Build docker image
run: |
docker build . --tag ${{env.REGISTRY}}/${{env.IMAGE}}:latest
docker push ${{env.REGISTRY}}/${{env.IMAGE}}:latest

25
.gitea/workflows/ups.yml Normal file
View File

@ -0,0 +1,25 @@
name: ups
on:
schedule:
- cron: "@weekly"
jobs:
ups:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt update -y
sudo apt install -y python3 python3-build python3-requests make
- name: Install ups
run: |
git clone https://git.ngn.tf/ngn/ups && cd ups
make && make install
- name: Run ups
run: PATH=~/.local/bin:$PATH ups-check

View File

@ -1,5 +1,7 @@
# [ngn.tf] | safetwitch
# safetwitch - frontend for twitch.tv
![](https://git.ngn.tf/ngn/safetwitch/actions/workflows/build.yml/badge.svg)
![](https://git.ngn.tf/ngn/safetwitch/actions/workflows/docker.yml/badge.svg)
![](https://git.ngn.tf/ngn/safetwitch/actions/workflows/ups.yml/badge.svg)
A fork of the [safetwitch](https://codeberg.org/safetwitch/safetwitch) project, with my personal changes.
A fork of the [safetwitch](https://codeberg.org/safetwitch/safetwitch) project,
with my personal changes.

5033
package-lock.json generated

File diff suppressed because it is too large Load Diff

5
ups.json Normal file
View File

@ -0,0 +1,5 @@
{
"upstream": "https://codeberg.org/safetwitch/safetwitch",
"provider": "gitea",
"commit": "f274ba527dd9ad9017ce4c97dc62622582ab82c3"
}