NETTİM
← Kod Sonuçlarına Dön
YAML Ağ işlemleri Yapılandırma dosyaları Lisans: Belirtilmemis

YAML — .gitlab-ci.yml

YAML — Ağ işlemleri, Yapılandırma dosyaları.
.gitlab-ci.yml • YAML
# You can override the included template(s) by including variable overrides
# See https://docs.gitlab.com/ee/user/application_security/sast/#customizing-the-sast-settings
# Note that environment variables can be set in several places
# See https://docs.gitlab.com/ee/ci/variables/#priority-of-environment-variables
include:
- template: Dependency-Scanning.gitlab-ci.yml
- template: Security/SAST.gitlab-ci.yml
stages:
- test
- deploy
sast:
  stage: test

deploy:
  image: node:latest
  stage: deploy
  before_script:
    - npm ci --cache .npm --prefer-offline
    - |
      {
        echo "@${CI_PROJECT_ROOT_NAMESPACE}:registry=${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/npm/"
        echo "${CI_API_V4_URL#https?}/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=\${CI_JOB_TOKEN}"
      } | tee --append .npmrc
  cache:
    key: ${CI_COMMIT_REF_SLUG}
    paths:
      - .npm/
  variables:
    NPM_TOKEN: ${CI_JOB_TOKEN}

  script:
    - npm publish
  rules:
    - if: $CI_COMMIT_TAG

Benzer Kod Örnekleri

YAML — config.yml
YAML • Ağ işlemleri
YAML — config.yml
YAML • Ağ işlemleri
YAML — config.yml
YAML • Ağ işlemleri
YAML — config.yml
YAML • Ağ işlemleri