S
S
stanlee2016-06-28 11:38:20
PHP
stanlee, 2016-06-28 11:38:20

How to set a condition in gitlab-ci.yml?

When assembling a project, certain software is installed.
During the subsequent assembly, the software is already installed, but it is still installed again.
How to avoid re-installation?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DuD, 2016-06-28
@DuD

Решение в лоб это if командами bash.
Так же можно посмотреть в сторону environment и обновлять его при установке ПО.

Александр Кузьменко, 2017-03-21
@therionkiev

У меня так. Кешируются уже установленные зависимости для компосера и нпм
# Select what we should cache: composer and npm
cache:
key: $CI_BUILD_REF_NAME
paths:
- vendor/
- node_modules/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question