stores: remove main() code #673
Workflow file for this run
This file contains hidden or 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: Docker Image | |
on: # yamllint disable-line rule:truthy | |
pull_request: | |
paths: | |
- '**' | |
push: | |
branches: | |
- develop | |
- integrate_1.9 | |
paths: | |
- '**' | |
env: | |
IMAGE_NAME: opendatacube/explorer | |
# 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: | |
deployment-image-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Build deployment Docker | |
run: | | |
make build-prod | |
make up-prod | |
- name: Sleep for 30 seconds | |
run: sleep 30s | |
shell: bash | |
- name: Prepare explorer schema | |
run: | | |
make init-odc | |
make schema | |
- name: Test ping | |
run: | | |
curl --show-error --fail \ | |
--connect-timeout 5 \ | |
--max-time 10 \ | |
--retry 5 \ | |
--retry-delay 0 \ | |
--retry-max-time 40 \ | |
"localhost:80/products" \ | |
> /dev/null |