-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cogify): improve cogify (#2800)
- Loading branch information
Showing
20 changed files
with
461 additions
and
127 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
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,15 +1,15 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
- package-ecosystem: npm | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
ignore: | ||
- dependency-name: '@aws-cdk/*' | ||
- dependency-name: 'aws-cdk' | ||
- dependency-name: 'aws-sdk' | ||
open-pull-requests-limit: 10 | ||
- package-ecosystem: 'github-actions' | ||
directory: '/' | ||
schedule: | ||
interval: daily | ||
- package-ecosystem: npm | ||
directory: '/' | ||
schedule: | ||
interval: daily | ||
ignore: | ||
- dependency-name: '@aws-cdk/*' | ||
- dependency-name: 'aws-cdk' | ||
- dependency-name: 'aws-sdk' | ||
open-pull-requests-limit: 10 |
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
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,6 +1,6 @@ | ||
name: screenshot | ||
|
||
on: | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
|
@@ -24,24 +24,24 @@ jobs: | |
npx lerna run bundle --stream | ||
npm pack --workspaces | ||
env: | ||
NODE_ENV: "production" | ||
NODE_ENV: 'production' | ||
|
||
- name: (NonProd) Configure AWS Credentials | ||
uses: aws-actions/[email protected] | ||
with: | ||
aws-region: ap-southeast-2 | ||
mask-aws-account-id: true | ||
role-to-assume: ${{ secrets.AWS_ROLE_SCREENSHOT }} | ||
|
||
- name: (Screenshot) Screenshot Pull Request Changes | ||
run: | | ||
./packages/cli/bin/bmc.js serve --config s3://linz-basemaps/config/config-latest.json.gz & | ||
# Wait for the server to start | ||
timeout 30 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost:5000/v1/version)" != "200" ]]; do sleep 0.5; done' || false | ||
docker run --rm --network="host" -v $PWD:$PWD ghcr.io/linz/basemaps-screenshot/cli:v1 --url http://localhost:5000 --output $PWD/.artifacts/visual-snapshots | ||
- name: Save snapshots | ||
uses: getsentry/action-visual-snapshot@v2 | ||
with: | ||
|
@@ -70,5 +70,5 @@ jobs: | |
id: visual-snapshots-diff | ||
uses: blacha/action-visual-snapshot@v2 | ||
with: | ||
storage-prefix: "s3://linz-basemaps-screenshot" | ||
storage-url: "https://d25mfjh9syaxsr.cloudfront.net" | ||
storage-prefix: 's3://linz-basemaps-screenshot' | ||
storage-url: 'https://d25mfjh9syaxsr.cloudfront.net' |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/** Is this script running inside of argo */ | ||
export function isArgo(): boolean { | ||
return process.env['ARGO_NODE_ID'] != null; | ||
} |
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,11 +1,13 @@ | ||
import { subcommands } from 'cmd-ts'; | ||
import { BasemapsCogifyCreateCommand } from './cli/cli.cog.js'; | ||
import { BasemapsCogifyCoverCommand } from './cli/cli.cover.js'; | ||
import { BasemapsCogifyConfigCommand } from './cli/cli.config.js'; | ||
|
||
export const CogifyCli = subcommands({ | ||
name: 'cogify', | ||
cmds: { | ||
cover: BasemapsCogifyCoverCommand, | ||
create: BasemapsCogifyCreateCommand, | ||
config: BasemapsCogifyConfigCommand, | ||
}, | ||
}); |
Oops, something went wrong.