Upload to Nexus, Upload files to hooks, Modify version number, Sync to GitLab type repository
Project description
Upload to Nexus, Upload files to hooks, Modify version number, Sync to GitLab type repository, Generate template files, Extract commands from Git commit messages
Installation
You can download and install the latest version of this software from the Python package index (PyPI) as follows::
pip install --upgrade artify
Usage
python -m artify --help=
python -m artify --command <command> [Options]
or
python -m artify -c <command> [Options]
Params
command nexus, syncrepo, deploy, deltav, create
Upload to Nexus
python -m artify -c nexus -f <format> -n <artifact_name> -h <nexus_repository_base_url>
Important
Artifact name should include artifact id and version number. E.g example-ws-1.0.0.war
Params
-f, format Nexus upload format. Types supported: raw, npm, maven
Environment variables need
NEXUS_GROUP_ID Group ID of the project e.g com.testing.testapplication NEXUS_USERNAME Username of nexus user that will upload artifact NExUS_PASSWORD Password of nexus user that will upload artifact
Deploy App using custom AWX host
python -m artify -c deploy -f <manifest_file.yml> -h <awx_host>
Environment variables need
DEPLOY_TOKEN Token used to deploy application
Change Package version
Artify uses semantic version 2.0.
python -m artify -c deltav -t patch -a npm
Params
-a, --archtype npm, gradle, flutter, maven, dotnet
-t, --type major, minor, patch, prerelease
Optional Params
For Prerelease version change
--preValue Prerelease version value e.g SNAPHOT, RELEASE, BUILD, beta, alpa
Push changes to GitLab repository
Recommendation: You can create a feature branch, then perform your code changes before pushing changes to remote
python -m artify -c syncrepo -m <message> -b
Params
-c, --message Commit message -b, --branch Optional, by default, it will push to 'develop' branch
Environment variables need
PRIVATE_TOKEN, popularly known as personal access token is needed to perform the push. This can be created by following this guide: Creating a personal access token
N.B A commit is performed automatically followed by a push
Generate Template files
Generate template .gitlab-ci.yml file
python -m artify -c create -f gitlabci
Geneate template manifest.yml file
python -m artify -c create -f manifest
Params -f, --file File template to generate
Supported files
- .gitlab-ci.yml
- manifest.yml
Extract commands from GIT message
python -m artify -c extract
Sample commit messages
-
Added login functionality {"version": "patch", "archtype": "npm" } - Updates the patch version of npm type project
-
Added search functionality {"deltav": "major", "archtype": "gradle" } - Updates the major version of a java project with Gradle build tool
-
Added edit functionality {"version": "minor", "a": "flutter" } - Updates the minor version of a flutter project
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file artify-1.5.0.tar.gz
.
File metadata
- Download URL: artify-1.5.0.tar.gz
- Upload date:
- Size: 13.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa48484175857e1c79249614414bebb81052d37ebd0c1f649cb24e9981511126 |
|
MD5 | 9f7f4bcc841c2493f642bdf246f24986 |
|
BLAKE2b-256 | a0b6be99f885e5025dfc48612c88604a05eb5a086ae7455aaa11457e1f6768d3 |
File details
Details for the file artify-1.5.0-py3-none-any.whl
.
File metadata
- Download URL: artify-1.5.0-py3-none-any.whl
- Upload date:
- Size: 14.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c365e0e6039a58d469b532f854dd6ad058dffdb486661c161b1a79e4f3fe745 |
|
MD5 | f9c10d4d88cf4e6f0807f17dcb147287 |
|
BLAKE2b-256 | c925eaa2823f8d2325a19f08558a419bff958211c266438bdb27774e7ac19018 |