Move cloudserver metadarta to Mongodb #55
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: AWS CLI S3 Upload Test | |
on: [ pull_request ] | |
jobs: | |
test: | |
name: Run Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Start Containers | |
run: docker compose -f "docker-compose.yaml" up -d --build | |
- name: Wait until mongodb is running | |
uses: nick-fields/retry@v2 | |
with: | |
timeout_seconds: 5 | |
max_attempts: 10 | |
retry_on: error | |
command: | | |
docker compose ps --services --filter "status=running" | grep mongodb | |
- name: Test | |
env: | |
AWS_ACCESS_KEY_ID: 'accessKey1' | |
AWS_SECRET_ACCESS_KEY: 'verySecretKey1' | |
AWS_DEFAULT_REGION: 'location-motion-v1' | |
uses: ./.github/actions/aws-cli-s3-upload-test | |
- name: Dump logs | |
if: failure() | |
run: docker compose logs | |
- name: Stop Containers | |
if: always() | |
run: docker compose -f 'docker-compose.yaml' down |