28 lines
432 B
YAML
28 lines
432 B
YAML
stages:
|
|
- build
|
|
- deploy
|
|
|
|
variables:
|
|
PIPELINE_WORK_DIR: "./"
|
|
DOCKERFILE_PATH: "./"
|
|
API_CFG: "./config/default.json"
|
|
CONTAINER_NAME: "eta-etaapi"
|
|
PUBLIC_PORT: 7001
|
|
PRIVATE_PORT: 3000
|
|
|
|
build-job:
|
|
stage: build
|
|
script:
|
|
- . ./scripts/ci_functions.sh
|
|
- build_docker $CONTAINER_NAME
|
|
only:
|
|
- master
|
|
|
|
deploy-job:
|
|
stage: deploy
|
|
script:
|
|
- . ./scripts/ci_functions.sh
|
|
- deploy
|
|
only:
|
|
- master
|