update enabled plugins for searXNG and hostname replace settings #74
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: deploy-searxng | |
on: | |
push: | |
paths: | |
- '.github/workflows/searxng.yml' | |
- 'searxng/**' | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Tailscale | |
uses: tailscale/github-action@7a0b30ed3517c2244d1330e39467b95f067a33bd | |
with: | |
oauth-client-id: ${{ secrets.TAILSCALE_CLIENT_ID }} | |
oauth-secret: ${{ secrets.TAILSCALE_SECRET }} | |
tags: tag:deploy-ci | |
hostname: Github-actions | |
version: ${{ vars.TAILSCALE_VERSION }} | |
- name: Add secrets to config files | |
env: | |
SEARXNG_SECRET_KEY: ${{ secrets.searxng_secret_key }} | |
run: | | |
sed -i "s/(searxng_secret_key)/$SEARXNG_SECRET_KEY/g" $GITHUB_WORKSPACE/searxng/settings.yml | |
- name: Start Deployment | |
uses: FarisZR/docker-compose-gitops-action@v1 | |
with: | |
remote_docker_host: ${{ secrets.server_address }} | |
tailscale_ssh: true # no need for manual private and public keys | |
upload_directory: true # upload docker directory | |
docker_compose_directory: searxng # directory to upload | |
compose_file_path: searxng/docker-compose.yml | |
args: -p searxng up -d --remove-orphans |