Skip to content

Commit

Permalink
Atualizando Github Actions - Encode url parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoallmeida committed Jan 22, 2024
1 parent 8866480 commit cbc9b1e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,20 @@ jobs:
context: .
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
tags: ${{ github.run_id }}
labels: ${{ steps.meta.outputs.labels }}

- name: Deploy Render Service
uses: fjogeleit/http-request-action@v1
with:
# Render API endpoint for creating a service preview
# url: 'https://api.render.com/v1/services/${{ secrets.RENDER_SERVICE_ID }}/preview'
url: https://api.render.com/deploy/${{ secrets.RENDER_SERVICE_ID }}?key=${{ secrets.HOOK_KEY_ID }}&imgURL=${{ env.DOCKERHUB_REPOSITORY_URL }}:${{ steps.meta.outputs.tags }}
param_encode: echo `${{ env.DOCKERHUB_REPOSITORY_URL }}:${{ github.run_id }} | sed 's|/|%2F|g' | sed 's|:|%2F|g'`
url: https://api.render.com/deploy/${{ secrets.RENDER_SERVICE_ID }}?key=${{ secrets.HOOK_KEY_ID }}&imgURL=$param_encode
method: 'POST'
# All Render API requests require a valid API key.
# bearerToken: ${{ secrets.RENDER_API_KEY }}
# Here we specify the digest of the image we just
# built. You can alternatively provide the image's
# tag (main) instead of a digest.
# data: '{"imagePath": "${{ env.DOCKERHUB_REPOSITORY_URL }}@${{ steps.build.outputs.digest }}"}'
# data: '{"imagePath": "${{ env.DOCKERHUB_REPOSITORY_URL }}@${{ steps.build.outputs.digest }}"}'

0 comments on commit cbc9b1e

Please sign in to comment.