Compare commits

...

2 Commits
master ... fuck

Author SHA1 Message Date
Fijxu 75e8d44c13
fuck
4get CI / build (push) Has been cancelled Details
4get CI / build (pull_request) Failing after 18s Details
2024-11-26 18:56:51 -03:00
Fijxu f74c3c1a04
Add actions support for 4get docker image builds
4get CI / build (push) Successful in 34s Details
2024-11-26 18:55:54 -03:00
2 changed files with 70 additions and 21 deletions

49
.gitea/workflows/ci.yml Normal file
View File

@ -0,0 +1,49 @@
name: '4get CI'
on:
workflow_dispatch:
pull_request:
push:
branches:
- '*'
paths-ignore:
- 'README.md'
- 'docker-compose.yaml'
- '.gitignore'
- 'docs/**'
jobs:
build:
runs-on: docker
steps:
- uses: actions/checkout@v4
name: Checkout 4get repository
- uses: docker/setup-buildx-action@v3
name: Setup Docker BuildX system
- name: Login to Docker Container Registry
uses: docker/login-action@v3
with:
registry: git.lolcat.ca
username: ${{ secrets.USERNAME }}
password: ${{ secrets.TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: git.lolcat.ca/ckg/4get
tags: |
type=sha,format=short,prefix={{date 'YYYY.MM.DD'}}-,enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
- uses: docker/build-push-action@v6
name: Build images
with:
context: .
file: Dockerfile
tags: ${{ steps.meta.outputs.tags }}
platforms: linux/amd64
push: true

View File

@ -8,7 +8,7 @@ class config{
const VERSION = 8;
// Will be shown pretty much everywhere.
const SERVER_NAME = "4get";
const SERVER_NAME = "RETARD";
// Will be shown in <meta> tag on home page
const SERVER_SHORT_DESCRIPTION = "4get is a proxy search engine that doesn't suck.";