17/12/2024

gitlab-ci : Components -2 create component

12 dk lik anlatimi : https://www.youtube.com/watch?v=oNcJCU-a-bM&list=PL05JrBw4t0Ko7epTKWQVsMxLgoYp6E96F&index=3
Bir componentin catalog da yayimlanmasi icin

  1. o repositorynin ayarlarinda “CI/CD Catalog Project” in aktif edilmesi,
  2. README.md dosyasinin olmasi
  3. Directory yapisinin geregi gibi olmasi
  4. Tag olusturulmasi
  5. release pipeline inin calismasi gerekmektedir.
  6. Project description inda mutlaka birsey yazmasi
  1. Catalog Aktifligi

2. README.md olmali

3. Min yapi ve biraz daha karmasik yapi iki resimde

4. Tag olusturulmasi : O repository e ait git bir git tag gerekiyor v1.0.0 gibi

5. release Pipeline inin olusmasi

create-release:
  image: registry.gitlab.com/gitlab-org/release-cli:latest
  script: echo "Creating release $CI_COMMIT_TAG"
  rules:
    - if: $CI_COMMIT_TAG
  release:
    tag_name: $CI_COMMIT_TAG
    description: "Release $CI_COMMIT_TAG of components repository $CI_PROJECT_PATH"

Bu cok kisitli bir pipeline tek stage tek job.

6. Project description inin olmasi.

Component in repository si ise asagida ki görülmektedir.