File tree Expand file tree Collapse file tree 1 file changed +18
-10
lines changed
Expand file tree Collapse file tree 1 file changed +18
-10
lines changed Original file line number Diff line number Diff line change 77 branches : [ master ]
88
99jobs :
10- build-my- app:
11-
10+ # Publishes a docker image of the server app, and deploys it Caprover.
11+ server-deploy :
1212 runs-on : ubuntu-latest
13+ container : node:14
1314 steps :
14- - name : Build and Push Docker Image
15- - run : npm start './index.js'
16- - uses : AlexxNB/caprover-action@v1
17- with :
18- server : ' https://captain.server01.dankore.com'
19- password : ' ${{ secrets.CAPROVER_PASSWORD }}'
20- appname : ' github'
21-
15+ - name : Checkout
16+ uses : actions/checkout@v2
17+ - name : Push docker image to GitHub Packages
18+ uses : docker/build-push-action@v1
19+ with :
20+ username : ${{ github.actor }}
21+ password : ${{ secrets.GITHUB_TOKEN }}
22+ registry : docker.pkg.github.com
23+ - name : Deploy image
24+ uses : stardustventures/caprover-deploy@v2
25+ with :
26+ server : " ${{ secrets.CAPROVER_URL }}"
27+ password : " ${{ secrets.CAPROVER_PASSWORD }}"
28+ appname : " ${{ secrets.CAPROVER_APP }}"
29+ image : docker.pkg.github.com/dankore/docker:master
You can’t perform that action at this time.
0 commit comments