tree: f6b978411b8bc9cc23cd94e21cdccd23f4aa6291 [path history] [tgz]
  1. action.yml
  2. dbconf.yml
  3. Dockerfile
  4. entrypoint.sh
  5. README.md
.github/actions/tvdb-init/README.md

tvdb-init Docker action

This action initializes a Traffic Vault database in a locally running PostgresQL instance. It creates the traffic_vault user and database.

Outputs

exit-code

1 if the database initialized successfully.

Example usage

jobs:
  tests:
    runs-on: ubuntu-latest

    services:
      postgres:
        image: postgres:11.9
        env:
          POSTGRES_USER: traffic_ops
          POSTGRES_PASSWORD: twelve
          POSTGRES_DB: traaffic_ops
        ports:
        - 5432:5432
        options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

    steps:
      - name: Checkout
        uses: actions/checkout@master
      - name: ./.github/actions/tvdb-init