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

todb-init Docker action

This action initializes a Traffic Ops database in a locally running PostgresQL instance.

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: traffic_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/todb-init