21 Commits

Author SHA1 Message Date
Chris Hall
e2787c82fb simplifying credentials 2022-12-29 15:48:36 -08:00
Chris Hall
f9dd7b125f simplifying credentials 2022-12-29 15:44:59 -08:00
Chris Hall
ec22a48000 added checkout step 2022-12-29 15:34:30 -08:00
Chris Hall
4f3d283cae updated registry 2022-12-29 15:32:51 -08:00
Chris Hall
0eacc18d7c updated image build 2022-12-29 15:29:29 -08:00
Chris Hall
b78ec26cc6 working ssh step 2022-12-29 12:50:31 -08:00
Chris Hall
09c13a21bd debugging compose 2022-09-16 11:13:09 -07:00
Chris Hall
ed4b3b42e5 debugging compose 2022-09-16 11:11:56 -07:00
Chris Hall
4291551973 added closing parenthesis 2022-09-16 11:09:22 -07:00
Chris Hall
0375f2cb8e added closing parenthesis 2022-09-16 11:08:00 -07:00
Chris Hall
d7b9297afa updated 2022-09-16 11:06:39 -07:00
Chris Hall
9edb615b56 fixed docker command 2022-09-16 10:26:53 -07:00
Chris Hall
b2d16a0e57 added clone and compose 2022-09-16 09:51:08 -07:00
Chris Hall
dea7e0a560 added clone and compose 2022-09-16 09:46:09 -07:00
Chris Hall
ff5da863df added clone and compose 2022-09-16 09:38:34 -07:00
Chris Hall
f81252cebe ignoring hostkey checking 2022-09-16 09:28:57 -07:00
Chris Hall
aa410164fe adding env variable 2022-09-16 09:24:35 -07:00
Chris Hall
77fce86936 updated with ssh-agent 2022-09-14 08:51:48 -07:00
Chris Hall
f6930d8861 updated with key 2022-09-14 08:49:02 -07:00
Chris Hall
11e9217d63 updated command 2022-09-14 08:00:14 -07:00
Chris Hall
c5edfab2de initial version 2022-09-13 09:48:17 -07:00
3 changed files with 45 additions and 16 deletions

View File

@@ -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
View 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}

View File

@@ -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: