From bc2a280d560d51e623aa124abbf0075936669bb6 Mon Sep 17 00:00:00 2001 From: joaoallmeida Date: Mon, 22 Jan 2024 10:43:18 -0300 Subject: [PATCH] Atualizando Github Actions - Encode url parameter --- .github/workflows/deploy.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 369a5db..5adaa24 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -53,7 +53,7 @@ jobs: context: . file: ./Dockerfile push: true - tags: ${{ github.run_id }} + tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - name: Deploy Render Service @@ -61,7 +61,7 @@ jobs: with: # Render API endpoint for creating a service preview # url: 'https://api.render.com/v1/services/${{ secrets.RENDER_SERVICE_ID }}/preview' - param_encode: echo `${{ env.DOCKERHUB_REPOSITORY_URL }}:${{ github.run_id }} | sed 's|/|%2F|g' | sed 's|:|%2F|g'` + param_encode: echo `${{ env.DOCKERHUB_REPOSITORY_URL }}:${{ steps.meta.outputs.tags }} | 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.