File tree 1 file changed +19
-8
lines changed
1 file changed +19
-8
lines changed Original file line number Diff line number Diff line change @@ -50,11 +50,22 @@ jobs:
50
50
- build-and-publish
51
51
if : ${{ needs.release-please.outputs.release_created }}
52
52
steps :
53
- - name : Deploy
54
- run : |
55
- curl --fail-with-body -X POST \
56
- -H 'Content-Type: application/json' \
57
- -H 'Accept: application/json' \
58
- -H 'Authorization: Bearer ${{ secrets.PTAH_API_TOKEN }}' \
59
- -d '{"processes":[{"name":"svc","dockerImage":"ghcr.io/ptah-sh/ptah-server:${{ needs.release-please.outputs.tag_name }}"}]}' \
60
- https://ctl.ptah.sh/api/v0/services/3/deploy
53
+ - name : Deploy to Ptah.sh
54
+ uses : ptah-sh/deploy-action@v1
55
+ with :
56
+ apiKey : ${{ secrets.PTAH_API_KEY }}
57
+ service : ' ptah-server-prod'
58
+ processes : |
59
+ - name: svc
60
+ dockerImage: ghcr.io/ptah-sh/ptah-server:${{ needs.release-please.outputs.tag_name }}
61
+ envVars:
62
+ - name: SENTRY_VERSION
63
+ value: ${{ needs.release-please.outputs.tag_name }}
64
+ # - name: Deploy
65
+ # run: |
66
+ # curl --fail-with-body -X POST \
67
+ # -H 'Content-Type: application/json' \
68
+ # -H 'Accept: application/json' \
69
+ # -H 'Authorization: Bearer ${{ secrets.PTAH_API_TOKEN }}' \
70
+ # -d '{"processes":[{"name":"svc","dockerImage":"ghcr.io/ptah-sh/ptah-server:${{ needs.release-please.outputs.tag_name }}"}]}' \
71
+ # https://ctl.ptah.sh/api/v0/services/3/deploy
You can’t perform that action at this time.
0 commit comments