mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
auto deploy preview on okteto and docker-compose
This commit is contained in:
parent
89fbac5763
commit
f289334dec
3 changed files with 50 additions and 0 deletions
20
.github/workflows/preview-env-delete.yml
vendored
Normal file
20
.github/workflows/preview-env-delete.yml
vendored
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
name: Delete preview environment
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types:
|
||||||
|
- closed
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
closed:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Context
|
||||||
|
uses: okteto/context@latest
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.OKTETO_TOKEN }}
|
||||||
|
|
||||||
|
- name: Destroy preview environment
|
||||||
|
uses: okteto/destroy-preview@latest
|
||||||
|
with:
|
||||||
|
name: pr-${{ github.event.number }}-unixfox
|
23
.github/workflows/preview-env-deploy.yml
vendored
Normal file
23
.github/workflows/preview-env-deploy.yml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
name: Deploy preview environment
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [opened, synchronize, reopened]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
preview:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions: write-all
|
||||||
|
steps:
|
||||||
|
- name: Context
|
||||||
|
uses: okteto/context@latest
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.OKTETO_TOKEN }}
|
||||||
|
|
||||||
|
- name: Deploy preview environment
|
||||||
|
uses: okteto/deploy-preview@latest
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
name: pr-${{ github.event.number }}-unixfox
|
||||||
|
timeout: 15m
|
7
docker-compose.yml
Normal file
7
docker-compose.yml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
version: "3"
|
||||||
|
|
||||||
|
services:
|
||||||
|
searxng:
|
||||||
|
build: .
|
||||||
|
ports:
|
||||||
|
- 8080:8080
|
Loading…
Add table
Reference in a new issue