diff --git a/v1/Dockerfile b/v1/Dockerfile index 985656b..1e8f8a3 100644 --- a/v1/Dockerfile +++ b/v1/Dockerfile @@ -12,8 +12,7 @@ COPY dotenv /app/.env RUN apk add bash bash-completion vim RUN npm install --include=dev -EXPOSE 3000 - ENV ROOT_PATH="/app" +ENV SERVER_PORT=3000 ENTRYPOINT npm start diff --git a/v1/scripts/ci_functions.sh b/v1/scripts/ci_functions.sh index 93a6710..b68061e 100644 --- a/v1/scripts/ci_functions.sh +++ b/v1/scripts/ci_functions.sh @@ -1,8 +1,8 @@ #! /bin/bash -REGISTRY_USER="jcruzbaas@gmail.com" -REGISTRY_NAME="registry.gitlab.com/jcruzbaasworkspace/enruta" -REGISTRY_SERVER="registry.gitlab.com" +REGISTRY_USER="registry" +REGISTRY_NAME="registry.cloud.etaviaporte.com" +REGISTRY_SERVER="registry.cloud.etaviaporte.com" CONTAINER_VERSION="latest" # Requirements @@ -25,9 +25,9 @@ function build_docker(){ function upload_image(){ #Global ENV VAR: REGISTRY_NAME - #Global ENV VAR: GITLAB_CICD_REGISTRY_TOKEN + #Global ENV VAR: CICD_REGISTRY_TOKEN #Global ENV VAR: CONTAINER_NAME - docker login $REGISTRY_SERVER -u "$REGISTRY_USER" -p "$GITLAB_CICD_REGISTRY_TOKEN" + docker login $REGISTRY_SERVER -u "$REGISTRY_USER" -p "$CICD_REGISTRY_TOKEN" set -x docker push "$REGISTRY_NAME/$CONTAINER_NAME":$CONTAINER_VERSION set +x