README.md

riploy #

simple docker stack deploy wrapper and small scafolding for golang projects

(just make a docker context that points to your vps via ssh and pass that context name to riploy), it will save your configuration into a ~/riploy.yaml file)

riploy -build -> builds the docker image (defaults to Dockerfile.prod) riploy -push -> push the docker image to a repository () riploy -deploy -> deploys the docker stack into your vps

this is an opionated tool, what i recommend would be to clone it and change the things u want to accomodate to your liking, specially the tempmlates, this covers my needs specifically

flags #

ctx:               string context name to use
docker-file:       string docker file name to use for building the final service
docker-user:       string name for the dockerhub account
stack-name:        string name of the stack to deploy
mail-sender:       string email address from which we are sending emails
mail-username:     string email username (will fallback into mail-sender if not present)
mail-password:     string email password
production-home    string production home path
vcs:               string vcs repository url
domain:            string name of the domain
overwrite-secrets: bool   should overwrite all the secrets files (defaults to false)
build:             bool   should build
push:              bool   should push
deploy:            bool   should deploy
all:               bool   do everything
force:             bool   ignore if there are not new changes (just use in case the build was interrupted)
init:              bool   init an empty docker-stack.yaml
svelte:            bool   (depends on init) -> tells riploy to generate the svelte docker files
golang:            bool   (depends on init) -> tells riploy to generate the golang/backend docker files
static:            bool   init an svelte-static  Dockerfile
ssr:               bool   init an svelte-ssr     Dockerfile
node:              bool   init an svelte-node    Dockerfile
bun:               bool   init an svelte-bun     Dockerfile
deno:              bool   init an svelte-deno    Dockerfile
svelte-port:       int    port to use for the svelte app
server-port:       int    port to use for the server
debugger-port:     int    port to use for the debugger
jwt-secret:        string containing the token secret (jwt)
jwt-issuer:        string issuer for the token (jwt)
jwt-audience:      string audience for the token (jwt)
stupid-song:       bool   just for testing btw listen to olivia she is goated <3
help:              bool   prints this help message