feat: PROD_URL
This commit is contained in:
parent
4c06b487b3
commit
f8cde647b1
1
.env
1
.env
@ -1 +1,2 @@
|
||||
PROD_URL=searx.gmoker.com
|
||||
IMAGEAPP=docker.io/searxng/searxng:2024.4.30-f8bdf6197
|
||||
|
@ -1,15 +1,20 @@
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: test
|
||||
deploy:
|
||||
runs-on: debian
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: setup env
|
||||
run: |
|
||||
. ./.env
|
||||
if [ "${{ gitea.ref_name }}" == prod ] && [ -n "$PROD_URL" ]; then
|
||||
BASE_URL="$PROD_URL"
|
||||
else
|
||||
BASE_URL="${{ gitea.ref_name }}.$(tr / '\n' <<< "${{ gitea.repository }}" | tac | tr '\n' .)k8s.gmoker.com"
|
||||
fi
|
||||
cat <<EOF >> .env
|
||||
BASE_URL="${{ gitea.ref_name }}.$(tr / '\n' <<< "${{ gitea.repository }}" | tac | tr '\n' .)k8s.gmoker.com"
|
||||
BASE_URL="$BASE_URL"
|
||||
EOF
|
||||
cat .env
|
||||
|
||||
|
@ -12,7 +12,7 @@ services:
|
||||
ports:
|
||||
- "8080:8080"
|
||||
environment:
|
||||
- SEARXNG_SECRET=secret
|
||||
- SEARXNG_SECRET=secret # $(openssl rand -hex 32)
|
||||
volumes:
|
||||
- ./limiter.toml:/etc/searxng/limiter.toml:ro
|
||||
- ./settings.yml:/etc/searxng/settings.yml:ro
|
||||
|
Loading…
Reference in New Issue
Block a user