Compare commits
No commits in common. "main" and "1.9.1" have entirely different histories.
5 changed files with 8 additions and 59 deletions
42
README.md
42
README.md
|
@ -1,45 +1,3 @@
|
||||||
This repo shows examples how dda-devops-build (https://repo.prod.meissa.de/meissa/dda-devops-build) can be used.
|
|
||||||
As a starting point, you may want to have a look at file [build.py](build.py) in this repo
|
|
||||||
and the tasks which are defined in this file.
|
|
||||||
|
|
||||||
# Usage
|
|
||||||
|
|
||||||
## Examples
|
|
||||||
|
|
||||||
### Build
|
|
||||||
|
|
||||||
You can trigger the build-task by
|
|
||||||
```
|
|
||||||
pyb dev
|
|
||||||
```
|
|
||||||
|
|
||||||
### Releases
|
|
||||||
|
|
||||||
With task `patch` you can create a patch-level release with one command, i.e. perform the following actions:
|
|
||||||
* create a commit for a patch-leve release version
|
|
||||||
* e.g. if current project version is 1.1.1-dev, the update version will be the release version 1.1.1
|
|
||||||
* the commit contains all build files specified in the build.py (primary as well as secondary build files),
|
|
||||||
where the primary build file contains the version number to be used for all build files
|
|
||||||
* create a tag for the release commit (e.g. tag 1.1.1 for the corresponding commit)
|
|
||||||
* a second commit for the next snapshot version (1.1.2-dev)
|
|
||||||
* push both commits and the tag to the remote git repo
|
|
||||||
|
|
||||||
```
|
|
||||||
pyb patch
|
|
||||||
```
|
|
||||||
|
|
||||||
Similarly you can create a minor or major version with:
|
|
||||||
|
|
||||||
```
|
|
||||||
pyb minor
|
|
||||||
```
|
|
||||||
resp.
|
|
||||||
```
|
|
||||||
pyb major
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Release Testing
|
# Release Testing
|
||||||
## NoRelease
|
## NoRelease
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ plugins {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
version = "4.0.1-SNAPSHOT"
|
version = "1.9.1"
|
||||||
group = "org.domaindrivenarchitecture.buildtest"
|
group = "org.domaindrivenarchitecture.buildtest"
|
||||||
|
|
||||||
|
|
||||||
|
|
19
build.py
19
build.py
|
@ -7,25 +7,16 @@ name = "buildtest"
|
||||||
MODULE = "release"
|
MODULE = "release"
|
||||||
PROJECT_ROOT_PATH = "."
|
PROJECT_ROOT_PATH = "."
|
||||||
|
|
||||||
version = "4.0.1-dev"
|
version = "1.9.1"
|
||||||
|
|
||||||
|
|
||||||
@init
|
@init(environments=["na"])
|
||||||
def initialize0(project):
|
|
||||||
"""
|
|
||||||
to avoid prompt for gopass if no artifacts need to be uploaded
|
|
||||||
usage: with option "-E ng" , e.g. "pyb -E artifacts patch_local"
|
|
||||||
"""
|
|
||||||
os.environ["RELEASE_ARTIFACT_TOKEN"] = "dummy" # avoids prompt for RELEASE_ARTIFACT_TOKEN
|
|
||||||
|
|
||||||
|
|
||||||
@init(environments=["artifacts"])
|
|
||||||
def initialize1(project):
|
def initialize1(project):
|
||||||
"""
|
"""
|
||||||
prompt for gopass if no artifacts need to be uploaded
|
to avoid prompt for gopass if no artifacts need to be uploaded
|
||||||
usage: with option "-E artifacts" , e.g. "pyb -E artifacts patch_local"
|
usage: with option "-E ng" , e.g. "pyb -E na patch_local"
|
||||||
"""
|
"""
|
||||||
del os.environ["RELEASE_ARTIFACT_TOKEN"]
|
os.environ["RELEASE_ARTIFACT_TOKEN"] = "dummy" # avoids prompt for RELEASE_ARTIFACT_TOKEN
|
||||||
|
|
||||||
|
|
||||||
@init
|
@init
|
||||||
|
|
|
@ -33,7 +33,7 @@ default_task = "dev"
|
||||||
name = "ddadevops"
|
name = "ddadevops"
|
||||||
MODULE = "not-used"
|
MODULE = "not-used"
|
||||||
PROJECT_ROOT_PATH = "."
|
PROJECT_ROOT_PATH = "."
|
||||||
version = "4.0.1-dev"
|
version = "1.9.1"
|
||||||
summary = "tools to support builds combining gopass, terraform, dda-pallet, aws & hetzner-cloud"
|
summary = "tools to support builds combining gopass, terraform, dda-pallet, aws & hetzner-cloud"
|
||||||
description = __doc__
|
description = __doc__
|
||||||
authors = [Author("meissa GmbH", "buero@meissa-gmbh.de")]
|
authors = [Author("meissa GmbH", "buero@meissa-gmbh.de")]
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "c4k-jira",
|
"name": "c4k-jira",
|
||||||
"description": "Generate c4k yaml for a jira deployment.",
|
"description": "Generate c4k yaml for a jira deployment.",
|
||||||
"author": "meissa GmbH",
|
"author": "meissa GmbH",
|
||||||
"version": "4.0.1-SNAPSHOT",
|
"version": "1.9.1",
|
||||||
"homepage": "https://gitlab.com/domaindrivenarchitecture/c4k-jira#readme",
|
"homepage": "https://gitlab.com/domaindrivenarchitecture/c4k-jira#readme",
|
||||||
"repository": "https://www.npmjs.com/package/c4k-jira",
|
"repository": "https://www.npmjs.com/package/c4k-jira",
|
||||||
"license": "APACHE2",
|
"license": "APACHE2",
|
||||||
|
|
Loading…
Reference in a new issue