-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
split download and process workflows
- Loading branch information
Showing
2 changed files
with
27 additions
and
4 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,26 @@ | ||
name: Download | ||
on: | ||
workflow_dispatch: | ||
workflow_call: | ||
env: | ||
AWS_ENDPOINT_URL: "https://nrs.objectstore.gov.bc.ca" | ||
AWS_S3_ENDPOINT: "nrs.objectstore.gov.bc.ca" | ||
AWS_VIRTUAL_HOSTING: "FALSE" | ||
AWS_EC2_METADATA_DISABLED: "true" | ||
CPL_VSISTDIN_BUFFER_LIMIT: -1 | ||
OBJECTSTORE_BUCKET: ${{ secrets.OBJECTSTORE_BUCKET }} | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
jobs: | ||
harvest-restrictions: | ||
runs-on: ubuntu-latest | ||
name: harvest-restrictions | ||
container: ghcr.io/bcgov/harvest-restrictions:main | ||
environment: production | ||
env: | ||
DEBIAN_FRONTEND: noninteractive | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Download sources to S3 | ||
run: | | ||
python download.py download sources.json -v --out_path s3://$OBJECTSTORE_BUCKET/dss_projects_2024/harvest_restrictions/sources |
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