feat(install)!: install.sh с JSON RPC proto 3 и голым WireGuard вместо AWG

This commit is contained in:
samosvalishe
2026-09-22 00:02:31 +03:00
parent ee30afc922
commit 0ee0d5333e
8 changed files with 1522 additions and 3511 deletions
+12
View File
@@ -82,6 +82,18 @@ jobs:
- run: govulncheck ./...
install-sh:
name: install.sh (bats)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6.0.2
- name: Install bats
run: sudo apt-get update -qq && sudo apt-get install -y -qq bats
- name: Run tests
run: bats scripts/tests
build-snapshot:
name: Snapshot build (all targets)
runs-on: ubuntu-latest
-48
View File
@@ -86,54 +86,6 @@ jobs:
dist/freeturn-sources.jar
retention-days: 7
awg-image:
name: AWG image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6.0.2
- uses: docker/setup-qemu-action@v4.0.0
- uses: docker/setup-buildx-action@v4.1.0
- name: Log in to GHCR
uses: docker/login-action@v4.2.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Resolve image tags
id: tags
run: |
version="${GITHUB_REF_NAME#v}"
repo=$(echo "ghcr.io/${{ github.repository_owner }}/freeturn-awg" | tr '[:upper:]' '[:lower:]')
{
echo "version=${version}"
echo "list<<EOF"
echo "${repo}:${version}"
# pre-release не двигает latest
case "${version}" in
*-*) ;;
*) echo "${repo}:latest" ;;
esac
echo "EOF"
} >> "$GITHUB_OUTPUT"
- uses: docker/build-push-action@v6.19.2
with:
context: .
file: docker/awg/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.tags.outputs.list }}
labels: |
org.opencontainers.image.source=https://github.com/${{ github.repository }}
org.opencontainers.image.version=${{ steps.tags.outputs.version }}
org.opencontainers.image.revision=${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max
goreleaser:
name: GoReleaser
runs-on: ubuntu-latest