Add CI/CD for auto-deployment of blog
All checks were successful
Build and Push Docker Image / build (push) Successful in 3m23s

This commit is contained in:
2026-04-15 16:37:12 -07:00
parent b96f7ed3f0
commit f3eb83bcc0
4 changed files with 324 additions and 0 deletions

164
blog.nomad.json Normal file
View File

@@ -0,0 +1,164 @@
{
"Job": {
"Region": null,
"Namespace": null,
"ID": "blog",
"Name": "blog",
"Type": "service",
"Priority": null,
"AllAtOnce": null,
"Datacenters": null,
"NodePool": null,
"Constraints": null,
"Affinities": null,
"TaskGroups": [
{
"Name": "blog",
"Count": 1,
"Constraints": null,
"Affinities": null,
"Tasks": [
{
"Name": "blog",
"Driver": "docker",
"User": "",
"Lifecycle": null,
"Config": {
"image": "git.cbraaten.dev/caleb/blog:latest",
"ports": [
"http"
]
},
"Constraints": null,
"Affinities": null,
"Env": null,
"Services": null,
"Resources": null,
"RestartPolicy": null,
"Meta": null,
"KillTimeout": null,
"LogConfig": null,
"Artifacts": null,
"Vault": null,
"Consul": null,
"Templates": null,
"DispatchPayload": null,
"VolumeMounts": null,
"Leader": false,
"ShutdownDelay": 0,
"KillSignal": "",
"Kind": "",
"ScalingPolicies": null,
"Secrets": null,
"Identity": null,
"Identities": null,
"Actions": null,
"Schedule": null
}
],
"Spreads": null,
"Volumes": null,
"RestartPolicy": null,
"Disconnect": null,
"ReschedulePolicy": null,
"EphemeralDisk": null,
"Update": {
"Stagger": null,
"MaxParallel": 1,
"HealthCheck": null,
"MinHealthyTime": 10000000000,
"HealthyDeadline": 180000000000,
"ProgressDeadline": null,
"Canary": null,
"AutoRevert": true,
"AutoPromote": null
},
"Migrate": null,
"Networks": [
{
"Mode": "",
"Device": "",
"CIDR": "",
"IP": "",
"DNS": null,
"ReservedPorts": null,
"DynamicPorts": [
{
"Label": "http",
"Value": 0,
"To": 3000,
"HostNetwork": "",
"IgnoreCollision": false
}
],
"Hostname": "",
"MBits": null,
"CNI": null
}
],
"Meta": null,
"Services": [
{
"Name": "blog",
"Tags": [
"traefik.enable=true",
"traefik.http.routers.domainredirect.tls=true",
"traefik.http.routers.domainredirect.entrypoints=websecure",
"traefik.http.routers.domainredirect.rule=Host(`cbraaten.dev`)"
],
"CanaryTags": null,
"EnableTagOverride": false,
"PortLabel": "http",
"AddressMode": "",
"Address": "",
"Checks": null,
"CheckRestart": null,
"Connect": null,
"Meta": null,
"CanaryMeta": null,
"TaggedAddresses": null,
"TaskName": "",
"OnUpdate": "",
"Identity": null,
"Weights": null,
"Provider": "consul",
"Cluster": "",
"Kind": ""
}
],
"ShutdownDelay": null,
"StopAfterClientDisconnect": null,
"MaxClientDisconnect": null,
"Scaling": null,
"Consul": null,
"PreventRescheduleOnLost": null
}
],
"Update": null,
"Multiregion": null,
"Spreads": null,
"Periodic": null,
"ParameterizedJob": null,
"Reschedule": null,
"Migrate": null,
"Meta": null,
"UI": null,
"Stop": null,
"ParentID": null,
"Dispatched": false,
"DispatchIdempotencyToken": null,
"Payload": null,
"ConsulNamespace": null,
"VaultNamespace": null,
"NomadTokenID": null,
"Status": null,
"StatusDescription": null,
"Stable": null,
"Version": null,
"SubmitTime": null,
"CreateIndex": null,
"ModifyIndex": null,
"JobModifyIndex": null,
"VersionTag": null
}
}