[pre-commit.ci] pre-commit autoupdate (#998) #457
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
--- | |
name: Complementary config test | |
on: | |
pull_request: | |
branches: | |
- 'master' | |
paths: | |
- '**' | |
- '!docs/**' | |
- '!*.rst' | |
- '!*.md' | |
- '!datacube_ows/__init__.py' | |
- '!.github/**' | |
- '.github/workflows/complementary-config-test.yaml' | |
push: | |
branches: | |
- 'master' | |
paths: | |
- '**' | |
- '!docs/**' | |
- '!*.rst' | |
- '!*.md' | |
- '!datacube_ows/__init__.py' | |
- '!.github/**' | |
- '.github/workflows/complementary-config-test.yaml' | |
env: | |
ORG: opendatacube | |
IMAGE: ows | |
jobs: | |
dea-config: | |
runs-on: ubuntu-latest | |
steps: | |
- name: git checkout ows | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
path: datacube-ows | |
- name: git checkout dea-config | |
uses: actions/checkout@v4 | |
with: | |
repository: GeoscienceAustralia/dea-config | |
path: dea-config | |
- name: Build dev OWS image | |
run: | | |
cd ./datacube-ows | |
docker build \ | |
--tag ${ORG}/${IMAGE}:_builder \ | |
. | |
- name: Config parser check | |
run: | | |
cd ./datacube-ows | |
export $(grep -v '^#' ./complementary_config_test/.env_complementary_config_dea_dev | xargs) | |
docker-compose -f docker-compose.yaml -f docker-compose.cleandb.yaml up -d | |
docker-compose -f docker-compose.yaml -f docker-compose.cleandb.yaml exec -T ows /bin/sh -c "cd /code; sh ./docker/ows/wait-for-db" | |
docker-compose -f docker-compose.yaml -f docker-compose.cleandb.yaml exec -T ows /bin/sh -c "datacube system init; datacube system check" | |
docker-compose -f docker-compose.yaml -f docker-compose.cleandb.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 /code; ./compare-cfg.sh" | |
docker-compose -f docker-compose.yaml -f docker-compose.cleandb.yaml down |