есть джоба где создается артефакт
.build_node:
extends: .cache
needs:
- install_prod_modules
- install_modules
script:
- yarn run build
artifacts:
paths:
- node_modules_prod/
- build/
expire_in: 30 mins
cache:
policy: pull
build-stage:
stage: build_and_test
extends: .build_node
variables:
DEPLOY_ENV: "staging"
except:
- master
- tags
build-prod:
stage: build_and_test
extends: .build_node
variables:
DEPLOY_ENV: "production"
only:
- master
- tags
делаю для теста след джобу
check-build:
stage: build_docker
script:
- ls -la
тут каталог build есть, но в следующей джобе уже нет каталога build
.deploy-kubernetes:
stage: deploy
image: dtzar/helm-kubectl:3.2.1
dependencies: []
needs:
- build-docker
variables:
HELM_APP_NS: NS
DOCKER_REGISTRY_SECRET_NAME: gitlab-registry-credentials
IMAGE_TAG: ${CI_COMMIT_REF_SLUG}_${CI_BUILD_REF}
before_script:
- export KUBECONFIG=$K8S_STAGING_CONF
script:
- kubectl create namespace ${HELM_APP_NS} || true
- kubectl -n ${HELM_APP_NS} delete secret ${DOCKER_REGISTRY_SECRET_NAME} || true
- kubectl create secret docker-registry ...
- kubectl get pods -n ${HELM_APP_NS}
- helm upgrade ...
deploy-branch:
extends: .deploy-kubernetes
environment:
name: staging/${CI_COMMIT_REF_SLUG}
url: https://${CI_COMMIT_REF_SLUG}.dev-example.com
on_stop: remove-branch
auto_stop_in: 1 day
before_script:
- ls -la
variables:
HELM_APP_NAME: ${CI_COMMIT_REF_SLUG}
HELM_VALUES_FILE: charts/NS/values/multistage.yml
when: manual
подскажите что не так и как прокинуть артефакт в джобу deploy?