Skip to content

Bypass spatial search #1839

Bypass spatial search

Bypass spatial search #1839

---
name: Complementary config test
on:
pull_request:
branches: &branches
- 'develop-1.8'
- 'develop'
paths: &paths
- '**'
- '!docs/**'
- '!*.rst'
- '!*.md'
- '!datacube_ows/__init__.py'
- '!.github/**'
- '.github/workflows/complementary-config-test.yaml'
push:
branches: *branches
paths: *paths
env:
DOCKER_IMAGE: ghcr.io/opendatacube/ows:tests
permissions: {}
# When a PR is updated, cancel the jobs from the previous version. Merges
# do not define head_ref, so use run_id to never cancel those jobs.
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
dea-config:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: git checkout ows
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
path: datacube-ows
persist-credentials: false
- name: git checkout dea-config
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
repository: GeoscienceAustralia/dea-config
path: dea-config
persist-credentials: false
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4.1.0
- name: Get Git commit timestamps
run: |
TIMESTAMP=$(cd datacube-ows && git log -1 --pretty=%ct pyproject.toml uv.lock datacube_ows)
echo "TIMESTAMP=$TIMESTAMP" >> $GITHUB_ENV
- name: Build Docker
uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0
with:
file: datacube-ows/Dockerfile
context: datacube-ows
tags: ${{ env.DOCKER_IMAGE }}
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
env:
SOURCE_DATE_EPOCH: ${{ env.TIMESTAMP }}
- name: Config parser check
run: |
export LOCAL_UID=$(id -u $USER)
export LOCAL_GID=$(id -g $USER)
cd ./datacube-ows
export $(grep -v '^#' ./complementary_config_test/.env_complementary_config_dea_dev | xargs)
docker compose -f docker-compose.yaml -f docker-compose.db.yaml up --quiet-pull -d --wait
docker compose -f docker-compose.yaml -f docker-compose.db.yaml exec -T ows /bin/sh -c "apt-get update && apt-get install -y curl"
docker compose -f docker-compose.yaml -f docker-compose.db.yaml exec -T ows /bin/sh -c "datacube system init && datacube system check"
docker compose -f docker-compose.yaml -f docker-compose.db.yaml exec -T ows /bin/sh -c "curl https://raw.githubusercontent.com/GeoscienceAustralia/dea-config/master/dev/services/wms/inventory.json -o /tmp/inventory.json"
docker compose -f docker-compose.yaml -f docker-compose.db.yaml exec -T ows /bin/sh -c "cd /src && ./compare-cfg.sh"
docker compose -f docker-compose.yaml -f docker-compose.db.yaml down