-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Caddyfile remove useless route Update docker-compose.yml Remove scripts/
- Loading branch information
1 parent
b0e1761
commit a3c01d9
Showing
4 changed files
with
53 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Sentinel | ||
|
||
### Setup | ||
|
||
Clone the repo on your server, then define these environment variables: | ||
``` | ||
CI_BRANCH - Target branch to automaticly deploy a projet (ex: main, develop) | ||
SITE_DOMAIN - Domain name of the projet (ex: arktest.example.com) | ||
SITE_ADDRESS - Current address of the server where the CI are (ex: 145.144.67.98) | ||
``` | ||
|
||
### Start | ||
|
||
Then when you have defined these variable you can juste run the command: | ||
```shell | ||
./start.sh | ||
``` | ||
It will start all instance of ARKultur based on the target branch `CI_BRANCH`. | ||
|
||
### Stop | ||
If you want to stop the CI you can run the command: | ||
```shell | ||
./stop.sh | ||
``` | ||
This command stop all instance (it doesn't remove anything). | ||
|
||
### Configure auto deploy | ||
When you run the command `./start.sh` the server who, auto deploy it also started, but | ||
you have to link it with a GitHub webhook. | ||
To do so go to: | ||
- Repo's settings | ||
- Webhooks | ||
- Create a new one | ||
- Content type: `application/json` | ||
- Check: `Let me select individual events.` | ||
- Uncheck: everything | ||
- Check: `Workflow runs` | ||
|
||
For the payload in caddy's config we've set a route called `ci_deploy/`. \ | ||
Add your server address (domain or IP) before this route (ex: https://example.com/ci_deploy). \ | ||
Then save your change and check if the ping work. \ | ||
If the configuration is good a new version of the project will be deployed when an action | ||
called `docker` id successfully done. \ | ||
|
||
### Upgrade | ||
|
||
If you want to upgrade something in the project there is: | ||
- `docker-compose.yml`: All information about containers | ||
- `configd/`: Contain Caddy's config file | ||
- `ci/`: Server which auto deploy a project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.