Skip to content

Commit

Permalink
Merge pull request #454 from gowon-bot/server-split
Browse files Browse the repository at this point in the history
Server split
  • Loading branch information
abbyfour authored Oct 9, 2023
2 parents c0a9d7b + 06049e8 commit 2faf6b0
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 40 deletions.
23 changes: 0 additions & 23 deletions .circleci/config.yml

This file was deleted.

18 changes: 18 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Deploy Gowon
run-name: ${{ github.actor }} is deploying Gowon
on:
push:
branches:
- main
jobs:
Deploy:
runs-on: ubuntu-latest
environment: production
steps:
- name: executing remote ssh commands using ssh key
uses: appleboy/[email protected]
with:
host: ${{ secrets.GOWON_HOST_IP }}
username: ${{ secrets.GOWON_HOST_USERNAME }}
key: ${{ secrets.SSH_KEY }}
script: cd ./gowon && /bin/bash ./deploy.sh
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
"editor.formatOnPaste": false,
"editor.formatOnType": false,
"editor.formatOnSaveMode": "file",
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint",
"yaml.schemas": {
"https://json.schemastore.org/github-workflow.json": ".github/workflows/deploy.yml"
}
}
4 changes: 2 additions & 2 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
git pull

docker-compose build
docker-compose up -d
docker compose build
docker compose up -d
14 changes: 1 addition & 13 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@ version: "3.9"
services:
gowon:
build: .
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- mirrorball
- lilac

mirrorball:
image: mirrorball
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
Expand All @@ -19,8 +11,4 @@ services:
redis:
image: "redis:alpine"

lilac:
image: lilac
extra_hosts:
- "host.docker.internal:host-gateway"
restart: on-failure

4 changes: 3 additions & 1 deletion src/commands/Fishy/Collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ export class Collection extends FishyChildCommand<typeof args> {
pageSize: 15,
pageRenderer(items, { offset }) {
return (
`_${displayFishyCollectionProgress(collection)}fishy collected_\n\n` +
`_${displayFishyCollectionProgress(
collection
)} fishy collected_\n\n` +
displayNumberedList(
items.map((f) => {
const owned = collection.includes(f.id);
Expand Down

0 comments on commit 2faf6b0

Please sign in to comment.