-
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.
- Loading branch information
Showing
5 changed files
with
89 additions
and
84 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Continuous integration | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
main | ||
|
||
jobs: | ||
update-lambdas: | ||
runs-on: ubuntu-latest | ||
env: | ||
CI: true | ||
STAC_SERVER_TAG: v2.2.3 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '16' | ||
- name: Update stac-server lambdas | ||
run: ./scripts/update-lambdas.sh |
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,32 +1,33 @@ | ||
modules/jupyterhub-dask-eks/cluster.yaml | ||
modules/jupyterhub-dask-eks/daskhub.yaml | ||
modules/jupyterhub-dask-eks/spec.yaml | ||
modules/jupyterhub-dask-eks/storageclass.yaml | ||
.terraform/ | ||
terraform-visual-report | ||
plan.json | ||
saved.plan | ||
*.tfstate | ||
*.tfstate.* | ||
.terraform.lock.hcl | ||
terraform.tgz | ||
bin/terraform | ||
*.auto.tfvars | ||
*.swp | ||
*.swo | ||
*.env* | ||
*.tmp | ||
*.orig | ||
*.out | ||
*.swo | ||
*.swp | ||
*.tfstate | ||
*.tfstate.* | ||
*.tmp | ||
*.zip | ||
*output | ||
node_modules | ||
package-lock.json | ||
plan.out | ||
.pytest* | ||
__pycache__ | ||
.DS_Store | ||
.opensearch.info | ||
.pytest* | ||
.terraform.lock* | ||
.terraform.lock.hcl | ||
.terraform.tfstate* | ||
.terraform/ | ||
__pycache__ | ||
bin/terraform | ||
modules/jupyterhub-dask-eks/cluster.yaml | ||
modules/jupyterhub-dask-eks/daskhub.yaml | ||
modules/jupyterhub-dask-eks/spec.yaml | ||
modules/jupyterhub-dask-eks/storageclass.yaml | ||
node_modules | ||
package-lock.json | ||
plan.json | ||
plan.out | ||
saved.plan | ||
stac-server-* | ||
.opensearch.info | ||
stac-server.tgz | ||
terraform-visual-report | ||
terraform.tgz |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Update the stac-server lambdas. | ||
# | ||
# Usage: | ||
# | ||
# ./scripts/update-lambdas.sh v2.2.3 | ||
# | ||
# or | ||
# | ||
# export STAC_SERVER_TAG=v2.2.3 | ||
# ./scripts/update-lambdas.sh | ||
|
||
set -e | ||
|
||
if [ -z "$1" ]; then | ||
if [ -z "${STAC_SERVER_TAG}" ]; then | ||
echo "ERROR: STAC_SERVER_TAG is not set in the environment and is not provided on the command line." | ||
echo "Usage: $0 [STAC_SERVER_TAG]" | ||
exit 1 | ||
fi | ||
else | ||
STAC_SERVER_TAG="$1" | ||
fi | ||
STAC_SERVER_DIR="stac-server-${STAC_SERVER_TAG:1}" | ||
|
||
echo "Downloading stac-server $STAC_SERVER_TAG to $STAC_SERVER_DIR..." | ||
curl -L -f --no-progress-meter -o stac-server.tgz "https://github.com/stac-utils/stac-server/archive/refs/tags/${STAC_SERVER_TAG}.tar.gz" | ||
tar -xzf stac-server.tgz | ||
|
||
echo "Building stac-server in $STAC_SERVER_DIR..." | ||
(cd "$STAC_SERVER_DIR"; npm install; BUILD_PRE_HOOK=true npm run build) | ||
|
||
echo "Copying stac-server lambdas..." | ||
mkdir -p modules/stac-server/lambda/api | ||
cp "$STAC_SERVER_DIR/dist/api/api.zip" modules/stac-server/lambda/api/ | ||
mkdir -p modules/stac-server/lambda/ingest | ||
cp "$STAC_SERVER_DIR/dist/ingest/ingest.zip" modules/stac-server/lambda/ingest/ | ||
mkdir -p modules/stac-server/lambda/pre-hook | ||
cp "$STAC_SERVER_DIR/dist/pre-hook/pre-hook.zip" modules/stac-server/lambda/pre-hook/ | ||
|
||
echo "Done!" |