Skip to content

Commit

Permalink
update the render webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
tenzinsamten committed Jan 12, 2025
1 parent 4195856 commit 80b2dda
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/github-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,12 @@ jobs:
run: |
lower_owner=$(echo "${{ github.repository_owner }}" | tr '[:upper:]' '[:lower:]')
docker push ghcr.io/$lower_owner/pecha-frontend:${{ env.IMAGE_TAG }}
deploy:
name: Deploy the image
runs-on: ubuntu-latest
needs: [buildDockerImage]
if: success()
steps:
- name: Trigger Render Deployment
run: |
curl -X POST "${{ secrets.RENDER_DEPLOY_HOOK_URL }}"
image_url=ghcr.io/$lower_owner/pecha-frontend:${{ env.IMAGE_TAG }}
encoded_url=$(python -c "import urllib.parse; print(urllib.parse.quote('${image_url}'))")
echo "Encoded URL: $encoded_url"
curl -X POST "${{ secrets.RENDER_DEPLOY_HOOK_URL }}?imgURL=${encoded_url}"
sonarQube:
if: github.event_name == 'workflow_dispatch'
Expand Down

0 comments on commit 80b2dda

Please sign in to comment.