forked from GoogleChrome/lighthouse-ci
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Estafette+OpenAPI YAML and /readiness route
- Loading branch information
1 parent
fbd4465
commit 8a7ce9c
Showing
4 changed files
with
111 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
labels: | ||
app: lhci-server | ||
team: aurora | ||
language: nodejs | ||
|
||
env: | ||
CONFIG_FILE: estafette.secret(GAP4TP5N72Pwguwc.fDnhd6KTaEFT5_ph1vgTq9iblQwQaH-8I2BWmqc8eYFZM4a2CL6k2x0GtZehHlpRQs3hdbK9Bkm2DDkk6sI3x7H9slqR46UrZhFlUY7q8rfnr-DhuL3Bvn7Hjs8MwXY3w-paDst1eTveg-3Dmz8hMbV4sBMEuQZUF_t60U-INJoXQYtFzfhJlrCIW3q2b_ZbUbwXjf51bP8iKWFfKABJrpftlcqAVC-TOxHloaGJgdYPJxD-laaOgqZvZZEpmstsnU8qDbrn_pDOIQT_OlG4US7H2lrKtYWU0jgarWRUQWAqBEaCSlsFwGAHK3GDyUZ2vPmPg3W8RaPVmwVtX1zAUD94QFjdVDlhfZR_P27xwhXj61rZfZnAfsIX98ywqKzm18rhxv3BTsMgTrhY7qZDil_wbjpmnnEKqvx0tOEdr4OmsLt8wBl8my0Bmu2Cl-vQ.fif6eJ6yDEhd2ZwD7dEWien1nQUtTkeoGEx1x5MFXMd6M6PpP7-KyScg2ZOBfW5P-ndVa32y7B6fNjQk4A==) | ||
|
||
stages: | ||
bake: | ||
image: extensions/docker:stable | ||
action: build | ||
inline: | | ||
FROM node:12-buster-slim | ||
WORKDIR /usr/src/lhci | ||
COPY /docs/recipes/docker-server/package.json . | ||
RUN echo $CONFIG_FILE | base64 -d > lighthouserc.json | ||
RUN npm install | ||
EXPOSE 9001 | ||
CMD [ "npm", "start" ] | ||
repositories: | ||
- eu.gcr.io/travix-com | ||
|
||
push: | ||
image: extensions/docker:stable | ||
action: push | ||
repositories: | ||
- eu.gcr.io/travix-com | ||
|
||
releases: | ||
tooling-common: | ||
clone: true | ||
stages: | ||
deploy: | ||
image: extensions/gke:stable | ||
visibility: private | ||
disableServiceAccountKeyRotation: true | ||
namespace: apps | ||
useGoogleCloudCredentials: true | ||
probeService: false | ||
container: | ||
repository: eu.gcr.io/travix-com | ||
port: 9001 | ||
cpu: | ||
request: 500m | ||
limit: 500m | ||
memory: | ||
request: 1Gi | ||
limit: 1Gi | ||
liveness: | ||
path: /version | ||
readiness: | ||
path: /version | ||
|
||
sidecars: | ||
- type: cloudsqlproxy | ||
env: | ||
CORS_ALLOWED_ORIGINS: "*" | ||
CORS_MAX_AGE: "86400" | ||
cpu: | ||
request: "10m" | ||
limit: "50m" | ||
memory: | ||
request: "10Mi" | ||
limit: "50Mi" | ||
dbinstanceconnectionname: tooling-common-rsc-gvwzh:europe-west1:lighthouse | ||
sqlproxyport: 5432 | ||
|
||
hosts: | ||
- lhci-server.travix.com | ||
|
||
internalhosts: | ||
- lhci-server.internal.travix.io |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,16 @@ | |
|
||
Lighthouse CI is a suite of tools that make continuously running, saving, retrieving, and asserting against [Lighthouse](https://github.com/GoogleChrome/lighthouse) results as easy as possible. | ||
|
||
### Syncing the Fork with Upstream | ||
|
||
```console | ||
git clone [email protected]:Travix-International/lighthouse-ci.git && cd lighthouse-ci | ||
git remote add upstream [email protected]:GoogleChrome/lighthouse-ci.git | ||
git fetch upstream master:upstream | ||
git rebase upstream master | ||
git push --force origin master | ||
``` | ||
|
||
### Quick Start | ||
|
||
To get started with GitHub actions for common project configurations, add the following file to your GitHub repository. Follow [the Getting Started guide](./docs/getting-started.md) for a more complete walkthrough and instructions on other providers and setups. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
swagger: '2.0' | ||
info: | ||
version: v1 | ||
title: lhci-server.internal.travix.io | ||
host: lhci-server.internal.travix.io | ||
schemes: | ||
- "https" | ||
basePath: "/" | ||
x-google-authorization: | ||
require_access_control: true | ||
paths: | ||
"/": | ||
post: | ||
operationId: ProductsCancellation | ||
responses: | ||
200: | ||
description: Success | ||
security: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters