Skip to content

armgit / core

Public Imported from GitHub
0

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

Added build artifacts to the gitlab pipelines

Michal Rutka2d1baab6e211
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5d3b3da9d..8585a3a48 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -71,6 +71,11 @@ build-enviroment:
when: never
- changes:
- Dockerfile
+ artifacts:
+ when: on_failure
+ paths:
+ - "/root/.npm/_logs/*"
+ expire_in: 4 weeks
build-deployment-manager-swarm:
stage: build
@@ -97,6 +102,11 @@ build-deployment-manager-swarm:
when: manual
retry:
max: 2
+ artifacts:
+ when: on_failure
+ paths:
+ - "/root/.npm/_logs/*"
+ expire_in: 4 weeks
build-keycloak-postgresql-proxy:
stage: build
@@ -123,6 +133,11 @@ 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 b5cdb8f75..45b406f3b 100644
--- a/gitlab-ci/gitlab-ci-submodule.yml
+++ b/gitlab-ci/gitlab-ci-submodule.yml
@@ -73,6 +73,11 @@ stages:
- docker push "$CI_REGISTRY_IMAGE/postgresql:$CI_ENVIRONMENT_SLUG-$CI_COMMIT_TAG"
- docker push "$CI_REGISTRY_IMAGE/keycloak:$CI_ENVIRONMENT_SLUG-$CI_COMMIT_TAG"
- fi
+ artifacts:
+ when: on_failure
+ paths:
+ - "/root/.npm/_logs/*"
+ expire_in: 4 weeks
.notify_whatsapp: &notify_whatsapp
image: registry.gitlab.com/gitlab-org/cloud-deploy/aws-base:latest