first commit
This commit is contained in:
commit
42b928f6e1
234 changed files with 27908 additions and 0 deletions
1
ViaProxy/.github/FUNDING.yml
vendored
Normal file
1
ViaProxy/.github/FUNDING.yml
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
ko_fi: "rk_01"
|
||||
12
ViaProxy/.github/crowdin.yml
vendored
Normal file
12
ViaProxy/.github/crowdin.yml
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
project_id_env: "CROWDIN_PROJECT_ID"
|
||||
api_token_env: "CROWDIN_PERSONAL_TOKEN"
|
||||
base_path: "../"
|
||||
preserve_hierarchy: true
|
||||
files: [
|
||||
{
|
||||
source: "/src/main/resources/assets/viaproxy/language/en_US.properties",
|
||||
translation: "/src/main/resources/assets/viaproxy/language/%locale_with_underscore%.properties",
|
||||
escape_quotes: 0,
|
||||
escape_special_characters: 0
|
||||
}
|
||||
]
|
||||
16
ViaProxy/.github/dependabot.yml
vendored
Normal file
16
ViaProxy/.github/dependabot.yml
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
version: 2
|
||||
registries:
|
||||
maven-central:
|
||||
type: "maven-repository"
|
||||
url: "https://repo.maven.apache.org/maven2/"
|
||||
updates:
|
||||
- package-ecosystem: "gradle"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
registries:
|
||||
- "maven-central"
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
62
ViaProxy/.github/workflows/build-docker.yml
vendored
Normal file
62
ViaProxy/.github/workflows/build-docker.yml
vendored
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
name: "Build Docker image"
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- "main"
|
||||
|
||||
permissions:
|
||||
contents: "read"
|
||||
packages: "write"
|
||||
|
||||
env:
|
||||
REGISTRY: "ghcr.io"
|
||||
|
||||
jobs:
|
||||
build-docker-image:
|
||||
runs-on: "ubuntu-24.04"
|
||||
steps:
|
||||
- name: "Checkout repository"
|
||||
uses: "actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd" # v6.0.2
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: "Set up Gradle"
|
||||
uses: "gradle/actions/setup-gradle@f29f5a9d7b09a7c6b29859002d29d24e1674c884" # v5.0.1
|
||||
- name: "Set up Java 25"
|
||||
uses: "actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654" # v5.2.0
|
||||
with:
|
||||
distribution: "temurin"
|
||||
java-version: 25
|
||||
check-latest: true
|
||||
- name: "Build with Gradle"
|
||||
run: "./gradlew build"
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
|
||||
- name: Log into registry ${{ env.REGISTRY }}
|
||||
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Extract Docker metadata
|
||||
id: meta
|
||||
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0
|
||||
with:
|
||||
tags: |
|
||||
type=raw,value=latest
|
||||
type=raw,value=${{ github.ref_name }}
|
||||
type=semver,pattern={{version}}
|
||||
images: ${{ env.REGISTRY }}/${{ github.repository }}
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
provenance: false
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
30
ViaProxy/.github/workflows/build.yml
vendored
Normal file
30
ViaProxy/.github/workflows/build.yml
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
name: "Build"
|
||||
on: ["push", "pull_request", "workflow_dispatch"]
|
||||
|
||||
permissions:
|
||||
contents: "read"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: "ubuntu-24.04"
|
||||
if: "${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}"
|
||||
steps:
|
||||
- name: "Checkout repository"
|
||||
uses: "actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd" # v6.0.2
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: "Set up Gradle"
|
||||
uses: "gradle/actions/setup-gradle@f29f5a9d7b09a7c6b29859002d29d24e1674c884" # v5.0.1
|
||||
- name: "Set up Java 25"
|
||||
uses: "actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654" # v5.2.0
|
||||
with:
|
||||
distribution: "temurin"
|
||||
java-version: 25
|
||||
check-latest: true
|
||||
- name: "Build with Gradle"
|
||||
run: "./gradlew build"
|
||||
- name: "Upload artifacts to GitHub"
|
||||
uses: "actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f" # v6.0.0
|
||||
with:
|
||||
name: "Artifacts"
|
||||
path: "build/libs/"
|
||||
34
ViaProxy/.github/workflows/crowdin-sync.yml
vendored
Normal file
34
ViaProxy/.github/workflows/crowdin-sync.yml
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
name: "Synchronize with Crowdin"
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: "0 0 * * *"
|
||||
|
||||
permissions:
|
||||
contents: "write"
|
||||
pull-requests: "write"
|
||||
|
||||
jobs:
|
||||
synchronize-with-crowdin:
|
||||
runs-on: "ubuntu-24.04"
|
||||
steps:
|
||||
- name: "Checkout repository"
|
||||
uses: "actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd" # v6.0.2
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: "Crowdin sync"
|
||||
uses: "crowdin/github-action@b4b468cffefb50bdd99dd83e5d2eaeb63c880380" # v2.14.0
|
||||
with:
|
||||
config: ".github/crowdin.yml"
|
||||
upload_sources: true
|
||||
download_translations: true
|
||||
localization_branch_name: "l10n_crowdin_translations"
|
||||
create_pull_request: true
|
||||
pull_request_base_branch_name: "main"
|
||||
pull_request_title: "New Crowdin Translations"
|
||||
pull_request_body: "New Crowdin translations by [Crowdin GH Action](https://github.com/crowdin/github-action)"
|
||||
commit_message: "Updated translations from Crowdin"
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
CROWDIN_PROJECT_ID: "${{ secrets.CROWDIN_PROJECT_ID }}"
|
||||
CROWDIN_PERSONAL_TOKEN: "${{ secrets.CROWDIN_PERSONAL_TOKEN }}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue