socs: update esporst discord bot
This commit is contained in:
		
							parent
							
								
									b58c812a3e
								
							
						
					
					
						commit
						7411520b71
					
				
					 1 changed files with 10 additions and 0 deletions
				
			
		| 
						 | 
					@ -10,6 +10,7 @@ job "esports-discord-bot" {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      config {
 | 
					      config {
 | 
				
			||||||
        image = "ghcr.io/aydenjahola/discord-multipurpose-bot:main"
 | 
					        image = "ghcr.io/aydenjahola/discord-multipurpose-bot:main"
 | 
				
			||||||
 | 
					        force_pull = true
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      resources {
 | 
					      resources {
 | 
				
			||||||
| 
						 | 
					@ -28,6 +29,15 @@ RAPIDAPI_KEY={{ key "socs/esports/bot/rapidapi/key" }}
 | 
				
			||||||
TRACKER_API_KEY={{ key "socs/esports/bot/trackerapi/key" }}
 | 
					TRACKER_API_KEY={{ key "socs/esports/bot/trackerapi/key" }}
 | 
				
			||||||
TRACKER_API_URL={{ key "socs/esports/bot/trackerapi/url" }}
 | 
					TRACKER_API_URL={{ key "socs/esports/bot/trackerapi/url" }}
 | 
				
			||||||
WORDNIK_API_KEY={{key "socs/esports/bot/wordnikapi/key" }}
 | 
					WORDNIK_API_KEY={{key "socs/esports/bot/wordnikapi/key" }}
 | 
				
			||||||
 | 
					HUGGING_FACE_API_KEY={{ key "socs/esports/bot/huggingface/key" }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					RCON_HOST=esports-mc-rcon.service.consul
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# https://discuss.hashicorp.com/t/passing-registered-ip-and-port-from-consul-to-env-nomad-job-section/35647
 | 
				
			||||||
 | 
					{{ range service "esports-mc-rcon" }}
 | 
				
			||||||
 | 
					RCON_PORT={{ .Port }}{{ end }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					RCON_PASSWORD={{ key "games/mc/esports-mc/rcon/password" }}
 | 
				
			||||||
EOH
 | 
					EOH
 | 
				
			||||||
        destination = "local/.env"
 | 
					        destination = "local/.env"
 | 
				
			||||||
        env = true
 | 
					        env = true
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue