This repository has been archived by the owner on Apr 7, 2021. It is now read-only.
-
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.
👷♂️ Engineering systems update (#121)
* init lerna + yarn * add dependabot for yarn and docker * add pre-commit prettier hook * docker + actions update * add codecov script to package * update docker actions build * move dockerfile to root * use buildx for docker builds * buildx fix * buildx fix * revert buildx, add yarn.lock to git * add project target to docker build action * separate dockerfiles * ci docker fix
- Loading branch information
Showing
36 changed files
with
14,921 additions
and
14,294 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,11 @@ | ||
version: 1 | ||
update_configs: | ||
# Keep package.json (& lockfiles) up to date as soon as | ||
# new versions are published to the npm registry | ||
- package_manager: 'javascript' | ||
directory: '/' | ||
update_schedule: 'live' | ||
# Keep Dockerfile up to date, batching pull requests weekly | ||
- package_manager: 'docker' | ||
directory: '/docker' | ||
update_schedule: 'weekly' |
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 |
---|---|---|
@@ -1,18 +1,14 @@ | ||
.github | ||
.vscode | ||
common/temp | ||
k8s | ||
design-assets | ||
.vscode | ||
build-images.ps1 | ||
docker-compose*.yml | ||
*Dockerfile | ||
*.md | ||
*/node_modules | ||
*/dist | ||
*/build | ||
*/.rush | ||
*/*.build.log | ||
*/*.build.error.log | ||
*/.nyc_output | ||
*/coverage | ||
node_modules | ||
**/**/dist | ||
**/**/build | ||
**/**/.nyc_output | ||
**/**/coverage |
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,84 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
create: | ||
release: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-test-node: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js 12.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.x | ||
- name: Restore Package Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
node_modules | ||
*/*/node_modules | ||
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} | ||
- name: Install yarn | ||
run: npm i -g yarn | ||
- name: Install dependencies | ||
run: yarn install | ||
- name: Build projects | ||
run: yarn build | ||
- name: Run tests | ||
run: yarn test | ||
- name: Publish coverage | ||
run: yarn coverage | ||
|
||
build-push-docker: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- build-test-node | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
project: [api, banner, banner-data, client] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Pull base images | ||
run: | | ||
docker pull node:12-alpine | ||
docker pull nginx:alpine | ||
- uses: satackey/action-docker-layer-caching@v0.0.4 | ||
- name: Build and push Docker images | ||
uses: docker/build-push-action@v1 | ||
with: | ||
username: ${{ secrets.REGISTRY_USER }} | ||
password: ${{ secrets.REGISTRY_PASSWORD }} | ||
registry: ${{ secrets.REGISTRY_HOST }} | ||
repository: ${{ github.repository }}/${{ matrix.project }} | ||
build_args: CLIENT_WEBPUSHPUBLIC=${{ secrets.WEBPUSHPUBLIC }} | ||
path: . | ||
dockerfile: docker/${{ matrix.project }}.Dockerfile | ||
add_git_labels: true | ||
tag_with_ref: true | ||
push: ${{ (startsWith(github.ref, 'refs/tags/') || (github.ref == 'refs/heads/master') || (github.ref == 'refs/heads/staging')) }} | ||
|
||
trigger-hooks: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- build-push-docker | ||
steps: | ||
- name: Trigger Hooks - master | ||
if: github.ref == 'refs/heads/master' | ||
run: | | ||
curl -X POST -H "Content-Type: application/json" -d "{}" '${{ secrets.MASTER_HOOK }}' | ||
- name: Trigger Hooks - staging | ||
if: github.ref == 'refs/heads/staging' | ||
run: | | ||
curl -X POST -H "Content-Type: application/json" -d "{}" '${{ secrets.STAGING_HOOK }}' | ||
- name: Trigger Hooks - release | ||
if: startsWith(github.ref, 'refs/tags/') | ||
run: | | ||
curl -X POST -H "Content-Type: application/json" -d "{}" '${{ secrets.PROD_HOOK }}' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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 |
---|---|---|
@@ -1,14 +1,3 @@ | ||
{ | ||
"recommendations": [ | ||
"dbaeumer.vscode-eslint", | ||
"aaron-bond.better-comments", | ||
"coenraads.bracket-pair-colorizer-2", | ||
"streetsidesoftware.code-spell-checker", | ||
"ms-azuretools.vscode-docker", | ||
"eamodio.gitlens", | ||
"yzhang.markdown-all-in-one", | ||
"davidanson.vscode-markdownlint", | ||
"visualstudioexptteam.vscodeintellicode", | ||
"redhat.vscode-yaml" | ||
] | ||
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"] | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.