mirror of
https://github.com/cchuster/connerchu.com
synced 2025-08-03 02:35:31 +00:00
Compare commits
No commits in common. "59ced5703fbc61950ac914014948e79849f19839" and "e86c199496bf3f431d925a3fddcea3b7e0bac931" have entirely different histories.
59ced5703f
...
e86c199496
@ -1,30 +0,0 @@
|
|||||||
labels:
|
|
||||||
platform: linux/amd64
|
|
||||||
|
|
||||||
steps:
|
|
||||||
build:
|
|
||||||
image: hugomods/hugo:go-git
|
|
||||||
commands:
|
|
||||||
- hugo
|
|
||||||
- tar czvf site.tar.gz public/
|
|
||||||
|
|
||||||
upload:
|
|
||||||
image: plugins/s3
|
|
||||||
settings:
|
|
||||||
endpoint: https://api.minio.elara.ws
|
|
||||||
path_style: true
|
|
||||||
bucket: connerchu.com
|
|
||||||
access_key: AkdgUdmzEJBoiYa2
|
|
||||||
secret_key:
|
|
||||||
from_secret: minio_secret_key
|
|
||||||
source: site.tar.gz
|
|
||||||
target: /
|
|
||||||
|
|
||||||
deploy:
|
|
||||||
image: loq9/drone-nomad
|
|
||||||
settings:
|
|
||||||
addr: http://192.168.100.62:4646
|
|
||||||
template: template.nomad
|
|
||||||
environment:
|
|
||||||
- PLUGIN_WATCH_DEPLOYMENT=true
|
|
||||||
- PLUGIN_WATCH_DEPLOYMENT_TIMEOUT=10m
|
|
@ -1,53 +0,0 @@
|
|||||||
job "connerchu.com" {
|
|
||||||
region = "global"
|
|
||||||
datacenters = ["dc1"]
|
|
||||||
type = "service"
|
|
||||||
|
|
||||||
group "connerchu.com" {
|
|
||||||
count = 2
|
|
||||||
|
|
||||||
network {
|
|
||||||
port "http" {
|
|
||||||
to = 8000
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
task "webserver" {
|
|
||||||
driver = "docker"
|
|
||||||
|
|
||||||
env {
|
|
||||||
// Hack to force Nomad to re-deploy the service
|
|
||||||
// instead of ignoring it
|
|
||||||
COMMIT_SHA = "${DRONE_COMMIT_SHA}"
|
|
||||||
}
|
|
||||||
|
|
||||||
config {
|
|
||||||
image = "gitea.elara.ws/elara6331/webserver:latest"
|
|
||||||
ports = ["http"]
|
|
||||||
volumes = ["local/site/public:/html:ro"]
|
|
||||||
}
|
|
||||||
|
|
||||||
artifact {
|
|
||||||
source = "https://api.minio.elara.ws/connerchu.com/site.tar.gz"
|
|
||||||
destination = "local/site"
|
|
||||||
}
|
|
||||||
|
|
||||||
service {
|
|
||||||
name = "connerchu.com"
|
|
||||||
port = "http"
|
|
||||||
|
|
||||||
tags = [
|
|
||||||
"traefik.enable=true",
|
|
||||||
|
|
||||||
"traefik.http.middlewares.connerchu-redir.redirectRegex.regex=^https://connerchu\\.com",
|
|
||||||
"traefik.http.middlewares.connerchu-redir.redirectRegex.replacement=https://www.connerchu.com",
|
|
||||||
"traefik.http.middlewares.connerchu-redir.redirectRegex.permanent=true",
|
|
||||||
|
|
||||||
"traefik.http.routers.connerchu.rule=Host(`connerchu.com`) || Host(`www.connerchu.com`)",
|
|
||||||
"traefik.http.routers.connerchu.middlewares=site-redir",
|
|
||||||
"traefik.http.routers.connerchu.tls.certResolver=letsencrypt",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user