mirror of
https://git.roussel.pro/public-website/singapore_rain_radar.git
synced 2026-02-09 02:20:17 +01:00
remove old container on deploy
This commit is contained in:
@@ -33,5 +33,8 @@ jobs:
|
|||||||
- name: Upload files
|
- name: Upload files
|
||||||
run: rsync -rvp --chown=quentin:users --chmod=777 --exclude=.gitea --exclude=.git ${{ vars.RSYNC_ARGS }} . remote:${{ vars.DESTINATION_DIR }}
|
run: rsync -rvp --chown=quentin:users --chmod=777 --exclude=.gitea --exclude=.git ${{ vars.RSYNC_ARGS }} . remote:${{ vars.DESTINATION_DIR }}
|
||||||
|
|
||||||
|
- name: Remove old container
|
||||||
|
run: docker kill $(docker ps -aq --filter ancestor=sg_rain_radar) && docker rm $(docker ps -aq --filter ancestor=sg_rain_radar)
|
||||||
|
|
||||||
- name: Run container
|
- name: Run container
|
||||||
run: ssh remote 'cd ${{ vars.DESTINATION_DIR }} && make run'
|
run: ssh remote 'cd ${{ vars.DESTINATION_DIR }} && make run'
|
||||||
|
|||||||
Reference in New Issue
Block a user