Skip to content
refresh-cw

GitHub Action

Render Redeploy Action

v0.3.3 Latest version

Render Redeploy Action

refresh-cw

Render Redeploy Action

Simple GitHub Action that redeploys Render applications

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Render Redeploy Action

uses: qbaware/render-redeploy-action@v0.3.3

Learn more about this action in qbaware/render-redeploy-action

Choose a version

Image Render Redeploy Action

GitHub Super-Linter CI CD

This is a simple GitHub Action that redeploys services hosted on Render's cloud platform.

This action could be useful in CI/CD pipelines that release Docker images and, as part of the pipeline, it's required to redeploy the services that are using those images so that they can run the latest versions.

How To Use

Define The Inputs

First, make sure to define the necessary input for the Action. You'd have to provide a Render API key (for authentication with their APIs) and a Render service ID (used to identify the service you want to redeploy).

To do this, you can leverage GitHub secrets and variables. In short, go to your repository's Settings tab and add the necessary secrets and variables under Secrets and variables then Actions.

Modify Your Action

Add the following deploy job in your Action.

deploy:
  # Assuming the `docker-images` job builds the Docker images,
  # we define a dependency on it.
  needs: docker-images 

  runs-on: ubuntu-latest
  steps:
    - name: Deploy to Render
      uses: qbaware/render-redeploy-action@v0
      with:
        render-api-key: ${{ secrets.RENDER_API_KEY }}
        render-service-id: ${{ env.RENDER_SERVICE_ID }}

That's It 🎉

Sample Workflow View

Sample workflow