Platon Yasev 3 years ago
commit e2c5831c70

@ -22,3 +22,33 @@ pages:
# a pages deploy
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
build-remote:
stage: build
only:
- main
script:
- cd /home/toren332/postamates/
- sudo git fetch
- sudo git reset --hard origin/main
- sudo git submodule foreach git pull origin main
- sudo git add postamates_frontend
- sudo git commit -m "new frontend"
- sudo git push
tags:
- deploy-remote
deploy-remote:
stage: deploy
only:
- main
script:
- cd /home/toren332/postamates/
- sudo docker-compose down
- sudo git fetch
- sudo git reset --hard origin/main
- sudo git submodule foreach git pull origin main
- sudo docker-compose build --no-cache frontend
- sudo docker-compose up -d
tags:
- deploy-remote

@ -91,3 +91,5 @@ For open source projects, say how it is licensed.
## Project status
If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
test
Loading…
Cancel
Save