Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 618 Bytes

README.md

File metadata and controls

26 lines (22 loc) · 618 Bytes

Deployer

CD pipeline dinâmico com integração com github e discord através de webhook.

Como usar

  1. Definir um workflow no github para testar o código
  2. Criar um arquivo .json em deployer/settings/ com o seguinte formato:
{
	"workflow_id": 71570015,
	"name": "Frontend",
	"deploy": {
		"path": "/root/front-producao/",
		"commands": [
			{"command": ["git", "pull"], "shell": false},
			{"command": ["/usr/bin/docker-compose", "up", "--build", "-d"], "shell": false}
		]
	}
}
  1. Vincular o webhook no github.

⚠️ Não se esqueça de definir a SECRET_KEY no .env