"auto-deploy"

This commit is contained in:
decentral1se 2023-02-28 11:10:10 +01:00
parent 8b7d6f1400
commit 4bbcf1dcd6
No known key found for this signature in database
GPG Key ID: 03789458B3D0C410
2 changed files with 17 additions and 0 deletions

View File

@ -11,6 +11,14 @@ Our public website made by members.
- From within the folder install all packages: `npm install` - From within the folder install all packages: `npm install`
- Run gulp for automation: `gulp watch` - Run gulp for automation: `gulp watch`
## Deployment
(You need to be a member of the systems workgroup to do this).
```
make
```
## Structure ## Structure
The website is served from the folder `/app`. The folder `/assets` is only for The website is served from the folder `/app`. The folder `/assets` is only for

9
makefile Normal file
View File

@ -0,0 +1,9 @@
default:
@docker build -t decentral1se/biobulkbende.org:latest . && \
docker push decentral1se/biobulkbende.org:latest && \
docker context use biobulkbende.org && \
docker stack rm biobulkbende_org && \
sleep 5 && \
docker system prune -fa && \
sleep 3 && \
docker stack deploy -c compose.yml biobulkbende_org