Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Latest commit

 

History

History
76 lines (62 loc) · 3.77 KB

FPM.md

File metadata and controls

76 lines (62 loc) · 3.77 KB

Fpm

Overview

Use the FPM tool to create packages for various systems.

Tools Section

Name Required Type Default Description
buildImage Required String Docker image containing the FPM tools as well as any other requirements.
sourceType String dir Refer to Sources documentation.
version String {{ build_version }} Version number to use for the resulting package, eqivalent to the -v flag.
name String <repo> The name of the output package, format will be -..
sourceDir String When using the dir sourceType this is the directory that will get packaged.
extraArgs String Any extra arguments to the FPM command.
dependencies List A list of dependencies that are required by your output package.
targetTypes List ['rpm'] Formats to create with the command.

Available Methods

package

Create application packages for various systems with one tool.

Name Required Type Default Description
buildImage Required String Docker image containing the FPM tools as well as any other requirements.
sourceType String dir Refer to Sources documentation.
version String {{ build_version }} Version number to use for the resulting package, eqivalent to the -v flag.
name String <repo> The name of the output package, format will be -..
sourceDir String When using the dir sourceType this is the directory that will get packaged.
extraArgs String Any extra arguments to the FPM command.
dependencies List A list of dependencies that are required by your output package.
targetTypes List ['rpm'] Formats to create with the command.

package Example

branches:
  feature:
    steps:
    - ansible:
      - playbook:
      - playbook:
          extraVars:
            DOCKER_IMAGE: '{{ DOCKER_IMAGE_TAG }}'
          limit: qa
          playbook: scripts/ansible/example-playbook.yml

Full Example Pipeline

pipelines:
  tools:
    branches:
      patterns:
        master: master
        develop: develop
        feature: .+
  branches:
    feature:
      steps:
        - fpm:
          - package:
              targetTypes:
                - deb
                - rpm
        - artifactory:
          - publish:

Additional Resources