Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI/CD trigger test #85

Closed
wants to merge 23 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/review-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Review app on pull request

on:
pull_request:
branches: main

env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
CLEVER_SECRET: ${{ secrets.CLEVER_SECRET }}
CLEVER_TOKEN: ${{ secrets.CLEVER_TOKEN }}
#ORGA_ID: ${{ secrets.ORGA_ID }}
HUGO_VERSION:

jobs:
setup:
runs-on: ubuntu-latest
steps:
- id: install
run: npm install -g clever-tools
- id: connect
run: clever login --token ${{ env.CLEVER_TOKEN }} --secret ${{ env.CLEVER_SECRET }}
- id: create
run: clever create --type static-apache ${{ env.BRANCH_NAME }} --alias ${{ env.BRANCH_NAME }} --region par --org ${{secrets.ORGA_ID}}
set-env:
runs-on: ubuntu-latest
steps:
- name: prebuild
run: clever env set CC_PRE_BUILD_HOOK "./clevercloud-deploy-script.sh"
- name: index
run: clever env set CC_WEBROOT "/public"
- name: hugo-env
run: clever env set HUGO_ENV "production"
- name: hugo-version
run: clever env set HUGO_VERSION ${{env.HUGO_VERSION}}
- name: php
run: clever env set CC_PHP_VERSION "7"
- name: hugo-env
run: clever env set HUGO_VERSION ${{env.HUGO_VERSION}}
- name: cgi
run: clever env set CC_CGI_IMPLEMENTATION "proxy_fcgi"
- name: composer
run: clever env set CC_COMPOSER_VERSION "2"
- name: domain
run: clever domain add ${{ env.BRANCH_NAME }}.cleverapps.io
deploy:
runs-on: ubuntu-latest
steps:
- name: link
run: clever link ${{ env.BRANCH_NAME }} --alias ${{ env.BRANCH_NAME }} && clever scale --flavor XS
- name: Set up app
run: clever deploy
15 changes: 15 additions & 0 deletions .github/workflows/test-cli.yml.nope
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Test CLI

on:
push:
branches:
- ci-cd

jobs:
install:
runs-on: ubuntu-latest
steps:
- id: install
run: npm install -g clever-tools
- id: command
run: clever --version
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ This is a Hugo project with a theme called "Hextra" added a module..</p>
- [Reference Environnement Variables](https://developers.clever-cloud.com/doc/reference/reference-environment-variables/)
- [Guides and Tutorials](https://developers.clever-cloud.com/guides/)


## Features

- **Beautiful Design** - Inspired by Nextra, Hextra utilizes Tailwind CSS to offer a modern design that makes your site look outstanding.
Expand Down Expand Up @@ -62,8 +61,8 @@ Follox these instructions to contibute to the doc.
### Run locally

1. Clone this repo
2. Go to the repo root `cd clever-documentation-2024`
3. Start the theme module: `hugo mod get github.com/imfing/hextra`
2. Go to the repo root `cd documentation`
3. Start the theme module: `hugo mod get github.com/imfing/hextra` (optional, might be needed to update the theme if you encounter errors in step 4)
4. Run `hugo server`

Local site is displayed on http://localhost:1313
2 changes: 1 addition & 1 deletion content/guides/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ comments: false
{{< cards >}}
{{< card link="/guides/kibana" title="Customize Kibana" subtitle= "Deploy and customize a Kibana server on Clever Cloud" icon="kibana" >}}
{{< card link="/guides/pgpool" title="Pgpool-II" subtitle= "How to configure and use Pgpool-II for PostgreSQL add-ons" icon="pg" >}}
{{< card link="/guides/mysql/pgpool" title="ProxySQL" subtitle= "Configure and use ProxySQL for MySQL add-ons" icon="mysql" >}}
{{< card link="/guides/proxysql" title="ProxySQL" subtitle= "Configure and use ProxySQL for MySQL add-ons" icon="mysql" >}}
{{< /cards >}}
Loading