Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Pull npm logs from pipeline build container

Michal Rutka349cf693ccaa
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8585a3a48..f3138a85b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -71,11 +71,6 @@ build-enviroment:
when: never
- changes:
- Dockerfile
- artifacts:
- when: on_failure
- paths:
- - "/root/.npm/_logs/*"
- expire_in: 4 weeks
build-deployment-manager-swarm:
stage: build
@@ -91,7 +86,7 @@ build-deployment-manager-swarm:
script:
- docker buildx ls
- docker context ls
- - docker run -v $(pwd):/or "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
+ - docker run -v $(pwd):/or -v $(pwd)/logs:/root/.npm/_logs "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
/bin/sh -c "./gradlew --console plain clean installDist"
# Build multi-arch images
- docker buildx build --push --platform $PLATFORM -t openremote/manager:latest manager/build/install/manager
@@ -105,7 +100,7 @@ build-deployment-manager-swarm:
artifacts:
when: on_failure
paths:
- - "/root/.npm/_logs/*"
+ - "logs/*"
expire_in: 4 weeks
build-keycloak-postgresql-proxy:
@@ -133,11 +128,6 @@ build-keycloak-postgresql-proxy:
- when: manual
retry:
max: 2
- artifacts:
- when: on_failure
- paths:
- - "/root/.npm/_logs/*"
- expire_in: 4 weeks
.email_template: &notify_email
image: docker:latest
diff --git a/gitlab-ci/gitlab-ci-submodule.yml b/gitlab-ci/gitlab-ci-submodule.yml
index 45b406f3b..df80d434c 100644
--- a/gitlab-ci/gitlab-ci-submodule.yml
+++ b/gitlab-ci/gitlab-ci-submodule.yml
@@ -42,7 +42,7 @@ stages:
before_script:
- echo "$CI_REGISTRY_PASSWORD" | docker login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY
script:
- - docker run -v $(pwd):/or registry.gitlab.com/openremote/openremote:master
+ - docker run -v $(pwd):/or -v $(pwd)/logs:/root/.npm/_logs registry.gitlab.com/openremote/openremote:master
/bin/sh -c "./gradlew --console plain clean installDist"
- docker run -v $(pwd):/or
-v /var/run/docker.sock:/var/run/docker.sock
@@ -76,7 +76,7 @@ stages:
artifacts:
when: on_failure
paths:
- - "/root/.npm/_logs/*"
+ - "logs/*"
expire_in: 4 weeks
.notify_whatsapp: &notify_whatsapp