Skip to content

Commit

Permalink
build: Upgrade the basemaps cli to version v7.2.0 (#879)
Browse files Browse the repository at this point in the history
#### Motivation

Upgrade the cli version for the ci cd.

#### Modification

The new config cli will be able to bundle the elevation config and
individual vector tilesets. And it also add the cache to the
`linz-basemaps-scrach` bucket for bundling performance.

#### Checklist

_If not applicable, provide explanation of why._

- [ ] Tests updated
- [ ] Docs updated
- [ ] Issue linked in Title
  • Loading branch information
Wentao-Kuang authored Apr 8, 2024
1 parent ab26b65 commit d2f852d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:

- name: Bundle Config File
run: |
./scripts/bmc.sh bundle --config $PWD/config --output $PWD/config-staging.json --assets ${ASSETS_LOCATION_STAGING}
./scripts/bmc.sh bundle --config $PWD/config --output $PWD/config-staging.json --assets ${ASSETS_LOCATION_STAGING} --cache s3://linz-basemaps-staging/basemaps-config/cache/
CONFIG_HASH_STAGING=$(cat config-staging.json | jq .hash -r)
echo "CONFIG_LOCATION_STAGING=s3://linz-basemaps-staging/config/config-${CONFIG_HASH_STAGING}.json.gz" >> $GITHUB_ENV
Expand Down Expand Up @@ -169,7 +169,7 @@ jobs:
# aws s3 cp assets-current.tar.co ${ASSETS_LOCATION_PROD}
./scripts/bmc.sh bundle --config $PWD/config-current.json.gz --output $PWD/config-prod.json --assets ${ASSETS_LOCATION_PROD}
./scripts/bmc.sh bundle --config $PWD/config-current.json.gz --output $PWD/config-prod.json --assets ${ASSETS_LOCATION_PROD} --cache s3://linz-basemaps-staging/basemaps-config/cache/
CONFIG_HASH_PROD=$(cat config-prod.json | jq .hash -r)
echo "CONFIG_LOCATION_PROD=s3://linz-basemaps/config/config-${CONFIG_HASH_PROD}.json.gz" >> $GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion scripts/bmc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ docker run \
-v ${PWD}:${PWD} \
-p 5000:5000 \
-e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY -e AWS_SESSION_TOKEN -e AWS_REGION -e AWS_DEFAULT_REGION \
ghcr.io/linz/basemaps/cli:v7.0.0-10-g82970b53 \
ghcr.io/linz/basemaps/cli:v7.2.0 \
"$@"

0 comments on commit d2f852d

Please sign in to comment.