Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
feat: enable continuous deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
bohdan-shulha committed Aug 22, 2024
1 parent 56665ff commit db6c8c4
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,18 @@ jobs:
with:
push: true
tags: ghcr.io/ptah-sh/storyngine:latest,ghcr.io/ptah-sh/storyngine:${{ needs.release-please.outputs.tag_name }}
# TODO: should we create a github deployment?
# deploy:
# runs-on: ubuntu-latest
# needs:
# - release-please
# - build-and-publish
# if: ${{ needs.release-please.outputs.release_created }}
# steps:
# - name: Deploy
# run: |
# curl --fail-with-body -X POST \
# -H 'Content-Type: application/json' \
# -H 'Accept: application/json' \
# -H 'Authorization: Bearer ${{ secrets.PTAH_API_TOKEN }}' \
# -d '{"processes":[{"name":"svc","dockerImage":"ghcr.io/ptah-sh/storyngine:${{ needs.release-please.outputs.tag_name }}"}]}' \
# https://ctl.ptah.sh/api/v0/services/3/deploy
deploy:
runs-on: ubuntu-latest
needs:
- release-please
- build-and-publish
if: ${{ needs.release-please.outputs.release_created }}
steps:
- name: Deploy
run: |
curl --fail-with-body -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer ${{ secrets.PTAH_API_TOKEN }}' \
-d '{"processes":[{"name":"svc","dockerImage":"ghcr.io/ptah-sh/storyngine:${{ needs.release-please.outputs.tag_name }}"}]}' \
https://ctl.ptah.sh/api/v0/services/62/deploy

0 comments on commit db6c8c4

Please sign in to comment.