Skip to content

Commit

Permalink
Merge pull request #1 from MDavidson17/gen-path
Browse files Browse the repository at this point in the history
Gen path
  • Loading branch information
MDavidson17 authored Jan 24, 2024
2 parents b0a7874 + 6a705fb commit c51659a
Show file tree
Hide file tree
Showing 10 changed files with 621 additions and 160 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ jobs:
result-encoding: string
script: |
const tags = [];
tags.push('ghcr.io/${{ github.repository }}:latest');
tags.push('ghcr.io/${{ github.repository }}:${{ steps.version.outputs.version }}');
tags.push('ghcr.io/mdavidson17/argo-tasks:latest');
tags.push('ghcr.io/mdavidson17/argo-tasks:${{ steps.version.outputs.version }}');
if ("${{ steps.login-ecr.outputs.registry }}") {
tags.push('${{ steps.login-ecr.outputs.registry }}/${{ github.event.repository.name }}:latest');
Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ LINZ uses [Argo workflows](https://argoproj.github.io/workflows/) for running bu
- [lds-fetch-layer](#lds-fetch-layer)
- [create-manifest](#create-manifest)
- [group](#group)
- [lint-inputs](#lint-inputs)
- [generate-path](#generate-path)
- [list](#list)
- [pretty-print](#pretty-print)
- [stac catalog](#stac-catalog)
Expand Down Expand Up @@ -39,14 +39,16 @@ Multiple layers can be fetched at the same time, fetch `51002` and `51000`:
lds-fetch-layer --target ./output 51002 51000
```

### `lint-inputs`
### `generate-path`

Lint imagery s3 target paths
Generate target path for ODR buckets using collection metadata.
For imagery naming conventions see: https://github.com/linz/imagery/blob/master/docs/naming.md
For elevation naming conventions see: https://github.com/linz/elevation/blob/master/docs/naming.md

#### Example

```bash
lint-inputs s3://nz-imagery/auckland/auckland_2012_0.075m/rgb/2193/
generate-path --target-bucket-name nz-imagery s3://linz-workflows-scratch/2024-01/04-is-niwe-hawkes-bay-l7tt4/flat/
```

### `list`
Expand Down
4 changes: 2 additions & 2 deletions src/commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import { commandCreateManifest } from './create-manifest/create-manifest.js';
import { commandPrettyPrint } from './format/pretty.print.js';
import { commandGroup } from './group/group.js';
import { commandLdsFetch } from './lds-cache/lds.cache.js';
import { commandLintInputs } from './lint/lint.s3.paths.js';
import { commandList } from './list/list.js';
import { commandGeneratePath } from './path/path.generate.js';
import { commandStacCatalog } from './stac-catalog/stac.catalog.js';
import { commandStacGithubImport } from './stac-github-import/stac.github.import.js';
import { commandStacSync } from './stac-sync/stac.sync.js';
Expand Down Expand Up @@ -50,6 +50,6 @@ export const cmd = subcommands({
},
}),
'pretty-print': commandPrettyPrint,
'lint-inputs': commandLintInputs,
'generate-path': commandGeneratePath,
},
});
54 changes: 0 additions & 54 deletions src/commands/lint/__test__/lint.test.ts

This file was deleted.

26 changes: 0 additions & 26 deletions src/commands/lint/lint.constants.ts

This file was deleted.

72 changes: 0 additions & 72 deletions src/commands/lint/lint.s3.paths.ts

This file was deleted.

Loading

0 comments on commit c51659a

Please sign in to comment.