@implementit/build-tools

0.0.5 • Public • Published

Using gitlab-ci.yml

  1. Install this lib npm i @implementit/build-tools --save-dev

  2. Create .env.example file in root of your project:

    APP_VERSION=latest
    DOCKER_PATH=path-to-project-docker-registry
    COMPOSE_PROJECT_NAME=any-project-name
    
  3. Create .gitlab-ci.yml file in root of your project:

    image: implementit/docker:ubuntu
    
    stages:
      - prepare
      - run
    
    generate-ci-process:
      stage: prepare
      only:
        - merge_requests
        - master
      artifacts:
        paths:
          - .gitlab-ci.dynamic.yml
      script:
        - npm ci
        - npx impl-generate-ci-process > .gitlab-ci.dynamic.yml
    
    run:
      stage: run
      only:
        - merge_requests
        - master
      trigger:
        include:
          - artifact: .gitlab-ci.dynamic.yml
            job: generate-ci-process
    
  4. Add .gitlab-ci.dynamic.yml and .env files to .gitignore

Readme

Keywords

none

Package Sidebar

Install

npm i @implementit/build-tools

Weekly Downloads

4

Version

0.0.5

License

none

Unpacked Size

32.3 kB

Total Files

18

Last publish

Collaborators

  • zmszaman