add ci for twilio
Some checks failed
Build and push Doorman UI / API / docker (push) Failing after 34s

This commit is contained in:
Martin Dimitrov 2024-10-26 11:13:47 -07:00
parent f53fd11c6e
commit 9a1f4877db
4 changed files with 35 additions and 28 deletions

View File

@ -0,0 +1,25 @@
name: Build and push Doorman UI / API
on:
push:
branches: [main]
jobs:
docker:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
name: Check out code
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: install dependencies
run: bun install
- name: Deploy Doorman UI and API
run: bun run deploy-serverless
env:
ACCOUNT_SID: ${{ secrets.ACCOUNT_SID }}
AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }}

View File

@ -1,25 +0,0 @@
name: Build and push image for doorman
on:
push:
branches: [main]
jobs:
docker:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
name: Check out code
- name: Build Docker image
run: docker build . -t gitea.chromart.cc/martin/doorman:v1 -t gitea.chromart.cc/martin/doorman:latest
- name: Login and Push Docker image
run: echo -n '${{ secrets.PASSWORD }}' | docker login gitea.chromart.cc --username ${{ secrets.USERNAME }} --password-stdin && docker image push --all-tags gitea.chromart.cc/martin/doorman
# deploy-portainer:
# needs: docker
# runs-on: ubuntu-22.04
# steps:
# - name: Call Portainer stack webhook
# run: curl --request POST http://192.168.1.150:9000/api/stacks/webhooks/42b3ae11-45bb-4021-b274-bedcb1250892

View File

@ -1,4 +1,4 @@
# lnurl-db
# doorman
To install dependencies:
@ -14,10 +14,14 @@ bun run index.ts
This project was created using `bun init` in bun v1.0.3. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.
## to deploy Doorman API / UI
```bash
bun run deploy-serverless
```
## homeassistant integration
in configuration.yaml
```

View File

@ -15,5 +15,8 @@
{
"path": "../../sideprojects/2023/smart-door-buzzer-twilio-functions"
}
]
],
"settings": {
"dotenv.enableAutocloaking": false
}
}