Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qbaware/render-redeploy-action
Simple GitHub Action that redeploys Render applications
https://github.com/qbaware/render-redeploy-action
continuous-delivery github-actions render
Last synced: about 1 month ago
JSON representation
Simple GitHub Action that redeploys Render applications
- Host: GitHub
- URL: https://github.com/qbaware/render-redeploy-action
- Owner: qbaware
- License: mit
- Created: 2024-01-13T11:15:59.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-30T10:00:05.000Z (about 2 months ago)
- Last Synced: 2024-11-30T10:20:58.047Z (about 2 months ago)
- Topics: continuous-delivery, github-actions, render
- Language: Go
- Homepage: https://github.com/marketplace/actions/render-redeploy-action
- Size: 412 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# ![Image](/resources/render-logo-small.png) Render Redeploy Action
![CI](https://github.com/qbaware/render-redeploy-action/actions/workflows/ci.yml/badge.svg)
![CD](https://github.com/qbaware/render-redeploy-action/actions/workflows/cd.yml/badge.svg)This is a simple GitHub Action that redeploys services hosted on
[Render](https://render.com/)'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](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions)
and
[variables](https://docs.github.com/en/actions/learn-github-actions/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.
``` yaml
deploy:
# Assuming the `docker-images` job builds the Docker images,
# we define a dependency on it.
needs: docker-imagesruns-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](/resources/sample-workflow.png)