Skip to content

Commit b5987a7

Browse files
authored
Update caprover.yml
1 parent 22ed755 commit b5987a7

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

.github/workflows/caprover.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,23 @@ on:
77
branches: [ master ]
88

99
jobs:
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

0 commit comments

Comments
 (0)