Skip to content

yyewolf/gocd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Release Software License Go Report Card GoDoc

Go CD

Go CD is a utility for infrastructures using docker compose as a method of deployments. It allows you to update your containers using tokens.

Usage

To get started with Go CD, follow these steps:

1. Deploy Go CD Container

You can deploy the Go CD container from the registry located at ghcr.io/yyewolf/gocd. Ensure that the following labels are configured in your docker-compose.yml or deployment manifest:

version: '3'
services:
  gocd:
    image: ghcr.io/yyewolf/gocd
    environment:
      - "DISCORD_WEBHOOK=https://discord.com/api/webhooks/your-webhook-id/your-webhook-token"
    ports:
      - "8080:8080"

2. Deploy controlled container

You can also deploy a controlled container (it can be started before or after GoCD, it doesn't matter).

version: '3'
services:
  container_a:
    image: your_image_a
    labels:
      - "gocd.enable=true"
      - "gocd.repo=<repo_url>" # Optional
      - "gocd.token=<token>"

3. Profit

You can now restart and update your container by doing the following :

GET /containers/<token>

Replace with the token assigned to the container you want to update.

Contributing

If you'd like to contribute to Go CD, please follow the contribution guidelines. License

This project is licensed under the MIT License - see the LICENSE file for details.

License

This project is licensed under the MIT License - see the LICENSE file for details.