diff --git a/.gitea/workflows/deploy-twilio.yaml b/.gitea/workflows/deploy-twilio.yaml new file mode 100644 index 0000000..dbb787c --- /dev/null +++ b/.gitea/workflows/deploy-twilio.yaml @@ -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 }} diff --git a/.gitea/workflows/docker-image.yaml b/.gitea/workflows/docker-image.yaml deleted file mode 100644 index e514724..0000000 --- a/.gitea/workflows/docker-image.yaml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/README.md b/README.md index 6e8f8db..a5bc215 100644 --- a/README.md +++ b/README.md @@ -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 ``` diff --git a/doorman.code-workspace b/doorman.code-workspace index 1af1748..3515e6a 100644 --- a/doorman.code-workspace +++ b/doorman.code-workspace @@ -15,5 +15,8 @@ { "path": "../../sideprojects/2023/smart-door-buzzer-twilio-functions" } - ] + ], + "settings": { + "dotenv.enableAutocloaking": false + } } \ No newline at end of file