Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
496.6K

Enrich codefresh image with PRs and Issues info image-enricher

Enrich codefresh image with PRs and Issues info

arguments

  • BRANCH - Branch
  • GERRIT_CHANGE_ID - The change-id or a commit message that contain the change-id
  • GITHUB_HOST - Support on-premises github host, by default github.com
  • GIT_PROVIDER_NAME - Name of git provider to use from Codefresh integrations screen
  • IMAGE - Image sha
  • REPO - repo-owner/repo-name
  • REVISION - Commit sha
    build:
  title: Building Docker image
  type: build
  image_name: 'codefresh/${{CF_REPO_NAME}}'
  tag: '${{PACKAGE_VERSION}}'
  dockerfile: Dockerfile
enrich-image:
  title: Enrich image with annotations
  type: image-enricher
  arguments:
    IMAGE: 'gcr.io/codefresh-inc/codefresh/${{CF_REPO_NAME}}'
    BRANCH: '${{CF_BRANCH}}'
    REPO: 'codefresh/${{CF_REPO_NAME}}'
    GIT_PROVIDER_NAME: github

  
github.com
Pavel Kostohrys
Jun 13, 2023