-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (27 loc) · 920 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/make
#
# Makefile for Debian
#
VERSION=`cat version.txt`
deb:
git-dch -a --ignore-branch
dch -v $(VERSION).$(BUILD_NUMBER) release --no-auto-nmu
dpkg-buildpackage -b -uc -us
upgrade-db:
bin/gdw_db_migration upgrade head
build:
docker build -t gdw.website .
docker run --name gdw.site gdw.website bash
docker cp gdw.site:/code/devel .
docker rm gdw.site
run:
docker-compose run --rm --service-ports giteswebsite /bin/zsh
sync-pass:
scp "lagrange.affinitic.be:/home/gdw/gites-website/var/*key" pass
scp "lagrange.affinitic.be:/home/gdw/gites-website/var/*pass" pass
scp "lagrange.affinitic.be:/home/gdw/gites-website/var/*admins" pass
sync-data:
mkdir -p var
rsync -av --exclude Data.fs.old [email protected]:/home/gdw/gites-website/var/filestorage/ var/filestorage/
rsync -av [email protected]:/home/gdw/gites-website/var/blobstorage/ var/blobstorage/
.PHONY: deb upgrade-db