File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,27 +26,16 @@ jobs:
2626 username : ${{ github.actor }}
2727 password : ${{ secrets.TOKEN }}
2828
29- - name : " Build&Deploy template-server "
30- uses : docker/build-push-action@v2
29+ - name : Build and push container
30+ uses : docker/build-push-action@v3
3131 with :
32+ context : .
33+ file : Dockerfile
3234 push : true
33- tags : |
34- ghcr.io/procollab-github/api:latest
35- secrets : |
36- "ASPNETCORE_ENVIRONMENT=Release"
37- build-args : |
38- build_mode=Release
39-
40- - name : " Run deploy on server"
41- uses : appleboy/ssh-action@master
42- with :
43- host : ${{ secrets.SERVER_HOST }}
44- username : ${{ secrets.SERVER_USERNAME }}
45- key : ${{ secrets.SERVER_KEY }}
46- port : ${{ secrets.SERVER_PORT }}
47- script : |
48- sudo docker-compose -f docker-compose.prod-ci.yml -p prod pull
49- sudo docker-compose -f docker-compose.prod-ci.yml -p prod up -d
35+ cache-from : type=gha
36+ cache-to : type=gha,mode=max
37+ tags : ${{ steps.meta.outputs.tags }}
38+ labels : ${{ steps.meta.outputs.labels }}
5039
5140 - name : run on server
5241 uses : garygrossgarten/github-action-ssh@release
You can’t perform that action at this time.
0 commit comments