ð deploy: switch to woodpecker, push to multiple registeries
All checks were successful
ci/woodpecker/push/clippy Pipeline was successful
All checks were successful
ci/woodpecker/push/clippy Pipeline was successful
This commit is contained in:
parent
792d6d197c
commit
82b47b20b8
7 changed files with 39 additions and 30 deletions
17
.github/workflows/_fly.yml
vendored
Normal file
17
.github/workflows/_fly.yml
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
name: Fly Deploy
|
||||
on:
|
||||
# push:
|
||||
# tags:
|
||||
# - "*"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
name: Deploy tamako
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: superfly/flyctl-actions/setup-flyctl@master
|
||||
- run: flyctl deploy --remote-only
|
||||
env:
|
||||
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
|
|
@ -1,4 +1,4 @@
|
|||
name: Publish image to github container registery
|
||||
name: Publish multiplatform image to github container registery
|
||||
|
||||
on:
|
||||
# push:
|
||||
|
@ -13,7 +13,6 @@ jobs:
|
|||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
platform:
|
||||
- linux/amd64
|
17
.github/workflows/fly.yml
vendored
17
.github/workflows/fly.yml
vendored
|
@ -1,17 +0,0 @@
|
|||
name: Fly Deploy
|
||||
on:
|
||||
workflow_dispatch:
|
||||
# push:
|
||||
# tags:
|
||||
# - "*"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
name: Deploy tamako
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: superfly/flyctl-actions/setup-flyctl@master
|
||||
- run: flyctl deploy --remote-only
|
||||
env:
|
||||
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
|
|
@ -1,3 +1,15 @@
|
|||
when:
|
||||
branch: master
|
||||
event: [push, manual]
|
||||
path:
|
||||
include:
|
||||
- "Cargo.toml"
|
||||
- "Dockerfile"
|
||||
- "src/**/*.rs"
|
||||
- "templates/**/*.html"
|
||||
- "migrations/**/*.sql"
|
||||
- ".sqlx/*"
|
||||
|
||||
steps:
|
||||
publish:
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
|
@ -13,12 +25,12 @@ steps:
|
|||
- registry: https://index.docker.io/v1/
|
||||
username: fawni
|
||||
password:
|
||||
from_secret: DOCKER_TOKEN
|
||||
from_secret: DOCKER_TOKEN
|
||||
- registry: https://ghcr.io
|
||||
username: fawni
|
||||
password:
|
||||
from_secret: GITHUB_TOKEN
|
||||
- registry: https://codeberg.org
|
||||
username: fawn
|
||||
password:
|
||||
password:
|
||||
from_secret: CODEBERG_TOKEN
|
||||
|
|
11
README.md
11
README.md
|
@ -27,14 +27,13 @@ tamako is a cozy, minimalistic, single-user, _anonymous_ whispers service
|
|||
|
||||
## Installation
|
||||
|
||||
### Docker Compose (recommended)
|
||||
### Docker Compose (Recommended)
|
||||
|
||||
Docker compose will also create a postgres service container.
|
||||
This will also create a postgres service container.
|
||||
|
||||
1. Clone the repo
|
||||
2. Rename `pg.env.example` to `pg.env` and change the user and password
|
||||
3. Rename `docker.env.example` to `docker.env` and change env variables inside it
|
||||
4. `docker compose up -d`
|
||||
2. Configure `docker-compose.yml` to match your setup, most importantly change the environment variables
|
||||
3. `docker compose up -d`
|
||||
|
||||
### Locally
|
||||
|
||||
|
@ -48,7 +47,7 @@ Docker compose will also create a postgres service container.
|
|||
Using docker directly is possible, but you have to configure the container yourself.
|
||||
|
||||
```sh
|
||||
docker run -d --name tamako --restart unless-stopped -p 8715:8715 ghcr.io/fawni/tamako:latest
|
||||
docker run -d --name tamako --restart unless-stopped -p 8715:8715 fawni/tamako:latest
|
||||
```
|
||||
|
||||
## TUI
|
||||
|
|
|
@ -15,9 +15,8 @@ services:
|
|||
- tamako
|
||||
|
||||
web:
|
||||
image: ghcr.io/fawni/tamako
|
||||
# build the image locally instead of pulling
|
||||
# build: .
|
||||
image: fawni/tamako # or ghcr.io/fawni/tamako or codeberg.org/fawn/tamako
|
||||
# build: . # uncomment to build the image locally instead of pulling from a registery
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
TAMAKO_HOST: "0.0.0.0" # the host to run the server on.
|
||||
|
|
Loadingâ¦
Reference in a new issue