mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-12-02 10:50:02 +01:00
Compare commits
21 Commits
2207d996a1
...
github-dep
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e2787c82fb | ||
|
|
f9dd7b125f | ||
|
|
ec22a48000 | ||
|
|
4f3d283cae | ||
|
|
0eacc18d7c | ||
|
|
b78ec26cc6 | ||
|
|
09c13a21bd | ||
|
|
ed4b3b42e5 | ||
|
|
4291551973 | ||
|
|
0375f2cb8e | ||
|
|
d7b9297afa | ||
|
|
9edb615b56 | ||
|
|
b2d16a0e57 | ||
|
|
dea7e0a560 | ||
|
|
ff5da863df | ||
|
|
f81252cebe | ||
|
|
aa410164fe | ||
|
|
77fce86936 | ||
|
|
f6930d8861 | ||
|
|
11e9217d63 | ||
|
|
c5edfab2de |
14
.env.example
14
.env.example
@@ -1,14 +0,0 @@
|
||||
# Tokens
|
||||
DISCORD_TOKEN= # Bot token from: https://discord.com/developers/
|
||||
|
||||
# Configuration
|
||||
DEFAULT_PREFIX= # Prefix used to run commands in Discord
|
||||
DEVELOPMENT= # (true/false) Enables developer mode
|
||||
|
||||
# Docker
|
||||
POSTGRES_USER=USERNAME
|
||||
POSTGRES_PASSWORD=PASSWORD
|
||||
POSTGRES_DB=DB
|
||||
|
||||
# Database URL (designed for Postgres, but designed on Prisma)
|
||||
DATABASE_URL= # "postgresql://USERNAME:PASSWORD@postgres:5432/DB?schema=ara&sslmode=prefer"
|
||||
40
.github/workflows/deploy.yml
vendored
Normal file
40
.github/workflows/deploy.yml
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
# This workflow uses actions that are not certified by GitHub.
|
||||
# They are provided by a third-party and are governed by
|
||||
# separate terms of service, privacy policy, and support
|
||||
# documentation.
|
||||
# ESLint is a tool for identifying and reporting on patterns
|
||||
# found in ECMAScript/JavaScript code.
|
||||
# More details at https://github.com/eslint/eslint
|
||||
# and https://eslint.org
|
||||
|
||||
name: Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main", "github-deploy-action" ]
|
||||
pull_request:
|
||||
# The branches below must be a subset of the branches above
|
||||
branches: [ "main" ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
env:
|
||||
REPO: git@github.com:veganhacktivists/arabot.git
|
||||
REGISTRY: registry.digitalocean.com/vh-registry
|
||||
IMAGE: test
|
||||
TAG: latest
|
||||
name: docker-build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out Code
|
||||
uses: actions/checkout@v3
|
||||
- name: Login to Registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: registry.digitalocean.com
|
||||
username: ${{ secrets.DIGITAL_OCEAN_IMAGE_REPO_TOKEN }}
|
||||
password: ${{ secrets.DIGITAL_OCEAN_IMAGE_REPO_TOKEN }}
|
||||
- name: build
|
||||
run: docker build . -t ${REGISTRY}/${IMAGE}:${TAG}
|
||||
- name: push
|
||||
run: docker push ${REGISTRY}/${IMAGE}:${TAG}
|
||||
@@ -2,6 +2,7 @@ version: "3.7"
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:14
|
||||
profiles: ["standalone"]
|
||||
container_name: postgres
|
||||
restart: always
|
||||
env_file:
|
||||
@@ -11,10 +12,11 @@ services:
|
||||
|
||||
redis:
|
||||
image: redis:7
|
||||
profiles: ["standalone", "prod"]
|
||||
container_name: redis
|
||||
restart: always
|
||||
env_file:
|
||||
- .env
|
||||
- .env.prod
|
||||
volumes:
|
||||
- redis:/data
|
||||
|
||||
@@ -22,11 +24,12 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
profiles: ["standalone", "prod"]
|
||||
depends_on:
|
||||
- postgres
|
||||
- redis
|
||||
env_file:
|
||||
- .env
|
||||
- .env.prod
|
||||
|
||||
volumes:
|
||||
postgres:
|
||||
|
||||
Reference in New Issue
Block a user