Skip to content

Commit 48e31ac

Browse files
committed
feat: #142 use gh action to deploy to ptah.sh
1 parent b2819e5 commit 48e31ac

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

.github/workflows/release-please.yml

+19-8
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,22 @@ jobs:
5050
- build-and-publish
5151
if: ${{ needs.release-please.outputs.release_created }}
5252
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

0 commit comments

Comments
 (0)