visch
01/13/2023, 10:26 PMvisch
01/13/2023, 10:26 PM# The Docker image that will be used to build your app
pages:
stage: run
image:
name: $CI_REGISTRY_IMAGE:latest
entrypoint: [""]
variables:
MELTANO_ENVIRONMENT: prod
POSTGRES_DB: $TAP_POSTGRES_HOST
POSTGRES_USER: $TAP_POSTGRES_HOST #Evidence.dev
POSTGRES_PASSWORD: $TAP_POSTGRES_HOST #Evidence.dev
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_HOST: $TAP_POSTGRES_HOST #Evidence.dev
POSTGRES_DATABASE: $TAP_POSTGRES_HOST #Evidence.dev
DATABASE: $TAP_POSTGRES_HOST #Evidence.dev
POSTGRES_PORT: 5432 #Evidence.dev
# Functions that should be executed before the build script is run
script:
- cd /project/my-project
- meltano run dashboard
- apt update -y
- apt install curl -y
- curl -fsSL <https://deb.nodesource.com/setup_18.x> | bash -
- apt install nodejs -y
- npm install
- npm run build
- cp -r build/ ${CI_PROJECT_DIR}/public
artifacts:
paths:
# The folder that contains the files to be exposed at the Page URL
- public
rules:
# This ensures that only pushes to the default branch will trigger
# a pages deploy
- if: ($CI_PIPELINE_SOURCE == "schedule" || $CI_PIPELINE_SOURCE == "web") && $mode == "dashboard"
services:
- postgres:12.2-alpinejacob_matson
01/13/2023, 10:30 PMvisch
01/13/2023, 10:41 PMjacob_matson
01/13/2023, 10:42 PMaaronsteers
01/14/2023, 1:12 AM