Compare commits
No commits in common. "098a69c0472cafba7b51e167d225f5ebb66d0ab4" and "a3c3ef4d05237180b32fd36efa01291a365971a8" have entirely different histories.
098a69c047
...
a3c3ef4d05
2 changed files with 13 additions and 13 deletions
|
@ -11,6 +11,7 @@ pipeline:
|
|||
- chmod 700 ~/.ssh
|
||||
|
||||
- make bundle hain="sh -c"
|
||||
- make yarn hain="sh -c"
|
||||
- echo -n z8p4KI/XRbGPdxPsNux8ys1gvL4+97DrrvPyt7gugJog3o3x/UEIyedkKUq9FWHOS9ltrsUN6NpN5Dsme+iHbMC/FrRjDmDvOoHpP/pqy924l6IgU8OK3m2Y28AU7eqiYvf6kJd5s4KmPJDiH9AQRx4QRy4jG5DfMHBew6EumqedgvRRFtAc3++GPH2qPnO8SYapRM4FXXUTjP3fNdRVD1Fqm7chUra4Qng1JhnzdMlOUhCPfD1Rmeh+X2TltzYhdPMFH3U3fJV7xCkitxu5PQgWfxMhb9FVF68Uvykbt/rod4IE6ZmAmPyyGktYuQSI2t1kkpAV4MOG4ag9aC/RLmi23rt+fVoYJREHga+NQ0YjVSGbBlINIDACr1iL+abtNmHhtfY+o9unlD7xy3UP0EdqTx6WncVJn02D--pfdBRF+zxL1uqoWs--4OJ7axQaFf9git6zUtUGOA== > config/credentials.yml.enc
|
||||
- make ota-js hain="sh -c"
|
||||
secrets:
|
||||
|
@ -23,5 +24,3 @@ pipeline:
|
|||
to: 801193228
|
||||
secrets:
|
||||
- token
|
||||
when:
|
||||
status: [ success, failure ]
|
||||
|
|
23
Makefile
23
Makefile
|
@ -102,20 +102,21 @@ save: ## Subir la imagen Docker al nodo delegado
|
|||
@echo -e "\a"
|
||||
|
||||
ota-js: assets ## Actualizar Javascript en el nodo delegado
|
||||
rsync -avi --chown=:82 --delete-after public/ root@$(delegate):/srv/sutty/srv/http/data/_$(public)/
|
||||
rsync -avi --chown=:82 --delete-after public/ root@$(delegate):/srv/sutty/srv/http/data/_public/_staging/
|
||||
ssh root@$(delegate) docker exec $(container) sh -c "cat /srv/http/tmp/puma.pid | xargs -r kill -USR2"
|
||||
sudo chgrp -R 82 public/
|
||||
rsync -avi --delete-after public/ $(delegate):/srv/sutty/srv/http/data/_$(public)/
|
||||
rsync -avi --delete-after public/ $(delegate):/srv/sutty/srv/http/data/_public/_staging/
|
||||
ssh $(delegate) docker exec $(container) sh -c "cat /srv/http/tmp/puma.pid | xargs -r kill -USR2"
|
||||
|
||||
ota: ## Actualizar Rails en el nodo delegado
|
||||
umask 022; git format-patch $(commit)
|
||||
scp ./0*.patch root@$(delegate):/tmp/
|
||||
ssh root@$(delegate) mkdir -p /tmp/patches-$(commit)/
|
||||
scp ./0*.patch root@$(delegate):/tmp/patches-$(commit)/
|
||||
scp ./ota.sh root@$(delegate):/tmp/
|
||||
ssh root@$(delegate) docker cp /tmp/patches-$(shell echo $(commit) | cut -d / -f 1) $(container):/tmp/
|
||||
ssh root@$(delegate) docker cp /tmp/ota.sh $(container):/usr/local/bin/ota
|
||||
ssh root@$(delegate) docker exec $(container) apk add --no-cache patch
|
||||
ssh root@$(delegate) docker exec $(container) ota $(commit)
|
||||
scp ./0*.patch $(delegate):/tmp/
|
||||
ssh $(delegate) mkdir -p /tmp/patches-$(commit)/
|
||||
scp ./0*.patch $(delegate):/tmp/patches-$(commit)/
|
||||
scp ./ota.sh $(delegate):/tmp/
|
||||
ssh $(delegate) docker cp /tmp/patches-$(shell echo $(commit) | cut -d / -f 1) $(container):/tmp/
|
||||
ssh $(delegate) docker cp /tmp/ota.sh $(container):/usr/local/bin/ota
|
||||
ssh $(delegate) docker exec $(container) apk add --no-cache patch
|
||||
ssh $(delegate) docker exec $(container) ota $(commit)
|
||||
rm ./0*.patch
|
||||
|
||||
# Todos los archivos de assets. Si alguno cambia, se van a recompilar
|
||||
|
|
Loading…
Reference in a new issue