@@ -18,28 +18,28 @@ jobs:
1818 with :
1919 username : ${{ secrets.DOCKER_USERNAME }}
2020 password : ${{ secrets.DOCKER_PASSWORD }}
21- - name : Get SHA
22- id : vars
23- run : echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
24- - name : Docker Build & Push
21+ # - name: Get SHA
22+ # id: vars
23+ # run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
24+ - name : Docker Build & Push Ghopper
2525 uses : docker/build-push-action@v2
2626 with :
2727 context : ./
28- file : ./Dockerfile
28+ file : ./docker-compose/ghopper/ Dockerfile
2929 push : true
30- tags : cornellappdev/resell-dev:${{ steps.vars.outputs.sha_short }}
31- - name : Remote SSH and Deploy
32- uses : appleboy/ssh-action@master
33- env :
34- IMAGE_TAG : ${{ steps.vars.outputs.sha_short }}
35- with :
36- host : ${{ secrets.DEV_SERVER_HOST }}
37- username : ${{ secrets.SERVER_USERNAME }}
38- key : ${{ secrets.DEV_SERVER_KEY }}
39- script : |
40- export IMAGE_TAG=${{ steps.vars.outputs.sha_short }}
41- cd docker-compose
42- docker stack rm the-stack
43- sleep 20s
44- docker stack deploy -c docker-compose.yml the-stack
45- docker system prune -a
30+ tags : cornellappdev/transit-ghopper:latest
31+ # - name: Remote SSH and Deploy
32+ # uses: appleboy/ssh-action@master
33+ # env:
34+ # IMAGE_TAG: ${{ steps.vars.outputs.sha_short }}
35+ # with:
36+ # host: ${{ secrets.DEV_SERVER_HOST }}
37+ # username: ${{ secrets.SERVER_USERNAME }}
38+ # key: ${{ secrets.DEV_SERVER_KEY }}
39+ # script: |
40+ # export IMAGE_TAG=${{ steps.vars.outputs.sha_short }}
41+ # cd docker-compose
42+ # docker stack rm the-stack
43+ # sleep 20s
44+ # docker stack deploy -c docker-compose.yml the-stack
45+ # yes | docker system prune -a
0 commit comments