You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Clever Cloud review app on PRs
v0.1.0
This GitHub Action does the following
- A PR is opened: it deploys the branch to be reviewed on Clever Cloud and posts a comment with the review app link
- The PR is updated: it deploys last pushed commit and post a comment to confirm the redeployment
- The PR is closed (merged or not): it deletes app and post a comment to confirm the job has been done.
- A Clever Cloud account
- An organisation in Clever Cloud
- Clever Cloud CLI installed in your machine to inject your tokens
Place this script in your repository in .github/workflows/
and modify the following values:
<type>
for the type of app<app-name>
for the name of your appregion
for where you want the app to be deployed<VARIABLE_NAME>
andvariable_value
for your environment variables
docker
: for Docker-based applicationsgo
: for Go applicationsgradle
: for applications launched with gradlehaskell
: for haskell applicationsjar
: for applications deployed as standalone jar filesmaven
: for applications launched with mavenmeteor
: for Meteor applications launched with Node.jsnode
: for Node.js applicationsphp
: for PHP applicationsplay1
: for Play1 applicationsplay2
: for Play2 applicationspython
: for python27 and python3 applicationsruby
: for ruby applicationsrust
: for rust applicationssbt
: for applications launched with SBTstatic-apache
: for static (HTML only) websiteswar
: for applications deployed as war files
par
(Paris, Clever Cloud)rbx
(Roubaix, OVHcloud)rbxhds
(Roubaix, HDS servers, OVHcloud)scw
(Paris, Scaleway DC5)jed
(Jeddah, Oracle Cloud)mtl
(Montreal, OVHcloud)sgp
(Singapore, OVHcloud)syd
(Sydney, OVHcloud)wsw
(Warsaw, OVHcloud)
CLEVER_SECRET
andCLEVER_TOKEN
: find them in yourclever-tools.json
after installing the CLI (example path on Mac:~/.config/clever-cloud/clever-tools.json
)ORGA_ID
: the organisation in which your app is created
You can pass more secrets in your app by setting them in your GitHub repository and listing them in env
and adding them like this : <A_SECRET>: ${{ secrets.<A_SECRET> }}
.
Then when injecting environment variables in Set evironment variables
step, add clever env set <A_SECRET> ${{env.<A_SECRET>}}
.
env:
...
HUGO_VERSION: ${{ secrets.HUGO_VERSION }}
...
- name: Set evironment variables
run: |
clever env set HUGO_VERSION ${{env.HUGO_VERSION}}