diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index b731720..369a5db 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -53,7 +53,7 @@ jobs: context: . file: ./Dockerfile push: true - tags: ${{ steps.meta.outputs.tags }} + tags: ${{ github.run_id }} labels: ${{ steps.meta.outputs.labels }} - name: Deploy Render Service @@ -61,11 +61,12 @@ jobs: 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 }}"}' \ No newline at end of file + # data: '{"imagePath": "${{ env.DOCKERHUB_REPOSITORY_URL }}@${{ steps.build.outputs.digest }}"}'