Download the PHP package metadrop/drupal-artifact-builder without Composer
On this page you can find all versions of the php package metadrop/drupal-artifact-builder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download metadrop/drupal-artifact-builder
More information about metadrop/drupal-artifact-builder
Files in metadrop/drupal-artifact-builder
Package drupal-artifact-builder
Short Description Helper to generate drupal artifacts
License
Informations about the package drupal-artifact-builder
Drupal artifact builder
Helps generating artifacts for Drupal
Installation
Configuration
Drupal artifact builder allow using a configuraiton file to create the artifact. Artifacts usually are executed using always the same parameters. So, a configuration file saves time adding those parameters every time the command is run.
Configuration file is placed at root (it can be changed through command line parameters). You cam copy the template to have an starting point:
Configuration properties
-
repository: Repository URL (git SSH / git HTTP URL).
Example:
-
include: Extra files or folders to include into the artifact.
Example:
-
author: It will be the author used in git commits.
Example:
-
branches_map: Key value map to git push source artifact branches to different artifact branches.
Example:
This example will make push the artifacts coming from develop source branch to the develop-build artifact branch.
Usage
Builds the artifact and push the changes to git:
Generate the artifact:
Push the created artifact to git:
Parameters
-
config: Allow setting the configuration file. Defaults to .drupal-artifact-builder.yml
-
repository: Selects the repository where the artifacts will be pushed.
Examples:
For the complete command (create + git):
For the git command:
- include: Allow adding more paths to the artifact.
Upgrade from 1.x to 2.x
2.0.0 release brings breaking changes and the way to use drupal-artifact-builder changes.
These steps must be followed in order to upgrade to the 2.0.0 version:
-
Copy and configure .drupal-artifact-builder.yml:
-
Change --extra-paths parameters to --include
Before:
Now:
-
Stop using GIT_BRANCH environment variable, not it is --branch
Before:
Now: