Commit 710b8309 authored by GridexX's avatar GridexX
Browse files

feat(lighthouse): update image tag, lighthouse and serve



Signed-off-by: default avatarGridexX <arsene582@gmail.com>
parent 32fe4aad
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
# Changelog
All notable changes to this job will be documented in this file.

## [1.2.0] - 2023-04-03
* Bump `IMAGE_TAG` from `89-with-node` to `102-with-node-16`
* Bump `LIGHTHOUSE_VERSION` from `7.2.0` to `10.1.0`
* Bump `SERVE_VERSION` from `11.3.2` to `14.2.0`

## [1.1.1] - 2023-02-28
* Fix broken documentation links

+4 −4
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ This job analyzes a remote website (or a local web service) and gives you a repo

    ??? summary "Option 3: Plug manually your container instance"
      Add the target container instance as a service (see
      [Container instance as Service]((https://docs.r2devops.io/get-started/use-templates/#use-a-template))/#advanced-services)) and
      [Container instance as Service](https://docs.r2devops.io/get-started/use-templates/#advanced-services) and
      set variable `LIGHTHOUSE_TARGET` as the name of your container.

3. If you need to customize the job (stage, variables, ...) 👉 check the [jobs
@@ -42,9 +42,9 @@ This job analyzes a remote website (or a local web service) and gives you a repo
| `OUTPUT_LOCALE` | Language of report file | `en` |
| `ADDITIONAL_OPTIONS` | Variable to add custom options (see [options](https://github.com/GoogleChrome/lighthouse#cli-options){:target="_blank"}) | ` ` |
| `PAGES_PATH` | Path of your static website (not used if `LIGHTHOUSE_TARGET` is filled) | `website_build/` |
| `SERVE_VERSION` | `serve` npm module's version | `11.3.2` |
| `LIGHTHOUSE_VERSION` | `Lighthouse` tool's version | `7.2.0`
| `IMAGE_TAG` | The default tag for the docker image | `89-with-node`  |
| `SERVE_VERSION` | `serve` npm module's version | `14.2.0` |
| `LIGHTHOUSE_VERSION` | `Lighthouse` tool's version | `10.1.0`
| `IMAGE_TAG` | The default tag for the docker image | `102-with-node-16`  |


## Audit configuration
+4 −4
Original line number Diff line number Diff line
@@ -11,9 +11,9 @@ lighthouse:
    OUTPUT_LOCALE: "en"
    ADDITIONAL_OPTIONS: ""
    PAGES_PATH: "website_build/"
    SERVE_VERSION: "11.3.2"
    LIGHTHOUSE_VERSION: "7.2.0"
    IMAGE_TAG: "89-with-node"
    SERVE_VERSION: "14.2.0"
    LIGHTHOUSE_VERSION: "10.1.0"
    IMAGE_TAG: "102-with-node-16"
  script:
    # Put in full lowercase OUTPUT_FORMAT to avoid problems
    - export OUTPUT_FORMAT=$(echo ${OUTPUT_FORMAT} | tr '[:upper:]' '[:lower:]')
@@ -24,7 +24,7 @@ lighthouse:
    - export CHROME_PATH="/usr/bin/chromium-browser"
    -  if [ -z ${LIGHTHOUSE_TARGET} ]; then
    -    if [ ! -d ${PAGES_PATH} ]; then
    -      echo "[ERROR] Variable LIGHTHOUSE_TARGET must be filled, see https://r2devops.io/_/r2devops-bot/lighthouse/"
    -      echo "[ERROR] Variable LIGHTHOUSE_TARGET must be filled, see https://r2devops.io/marketplace/gitlab/r2devops/hub/lighthouse/"
    -      exit 1
    -    fi
    -    npm install serve@${SERVE_VERSION}