Files
vpn-proxy/.gitea/workflows/gateway-build.yml
Dmitriy Petrov 1bdf12f174
Some checks failed
Build and Deploy Gateway / build-and-deploy (push) Failing after 2m58s
Break gateway build cycle with runtime base bootstrap
2026-05-09 10:54:13 +03:00

42 lines
1.2 KiB
YAML

name: Build and Deploy Gateway
on:
push:
branches: [master]
workflow_dispatch:
env:
DEPLOY_PATH: /opt/vpn-proxy
BASE_IMAGE: vpn-proxy-runtime-base:bookworm-slim
RUNTIME_BASE_SOURCE_IMAGE: mirror.gcr.io/library/debian:bookworm-slim
SINGBOX_VERSION: 1.12.13
jobs:
build-and-deploy:
runs-on: ubuntu-22.04
steps:
- name: Clone repository
env:
GIT_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
run: |
set -euo pipefail
SERVER_HOST=$(echo "${{ gitea.server_url }}" | sed 's|https\?://||')
rm -rf repo
git clone --depth 2 "http://${{ gitea.actor }}:${GIT_TOKEN}@${SERVER_HOST}/${{ gitea.repository }}.git" repo
cd repo
git checkout ${{ gitea.sha }}
- name: Build on runner 107 and deploy to 111
run: |
set -euo pipefail
cd repo
BUILD_HOST=local \
DEPLOY_HOST=111 \
DEPLOY_PATH="${{ env.DEPLOY_PATH }}" \
BASE_IMAGE="${{ env.BASE_IMAGE }}" \
RUNTIME_BASE_SOURCE_IMAGE="${{ env.RUNTIME_BASE_SOURCE_IMAGE }}" \
SINGBOX_VERSION="${{ env.SINGBOX_VERSION }}" \
IMAGE_TAG="${{ gitea.sha }}" \
bash scripts/build-on-107-deploy-111.sh