Compare commits

...

46 commits
3.4.1 ... main

Author SHA1 Message Date
ansgarz
0f6c2a5dcc bump version to: 4.0.1-dev 2024-02-02 11:27:05 +01:00
ansgarz
f0b0fb958d release: 4.0.0 2024-02-02 11:27:05 +01:00
ansgarz
def5427840 release: 3.0.0 2024-02-02 11:15:19 +01:00
ansgarz
1e5c4d236d bump version to: 2.1.1-dev 2024-02-02 11:15:07 +01:00
ansgarz
8f84454a84 release: 2.1.0 2024-02-02 11:15:07 +01:00
ansgarz
67ed50a36f release: 2.0.0 2024-02-02 11:14:51 +01:00
ansgarz
3860531bd4 update README.md 2024-02-02 11:11:20 +01:00
ansgarz
52c65b54c2 update README.md 2024-02-02 10:29:57 +01:00
ansgarz
e403015a30 bump version to: 1.10.1-dev 2024-02-02 09:26:40 +01:00
ansgarz
60c5efe19b release: 1.10.0 2024-02-02 09:26:40 +01:00
ansgarz
a7fbf02d7e chg layout 2024-02-02 08:38:54 +01:00
ansgarz
82016d213b bump version to: 1.9.3-dev 2024-02-01 22:53:36 +01:00
ansgarz
db0dde6251 release: 1.9.2 2024-02-01 22:53:36 +01:00
ansgarz
b08e201a03 prompt for gopass only if certain environment is set 2024-02-01 22:53:24 +01:00
ansgarz
32ae618fd6 bump version to: 1.9.2-dev 2024-01-26 14:39:23 +01:00
ansgarz
d48206f88c release: 1.9.1 2024-01-26 14:39:23 +01:00
ansgarz
c356ddf7e3 bump version to: 1.9.1-dev 2024-01-26 14:34:51 +01:00
ansgarz
07f901cd67 release: 1.9.0 2024-01-26 14:34:51 +01:00
ansgarz
967aeb325a bump version to: 1.8.13-dev 2024-01-26 14:32:42 +01:00
ansgarz
e6ebb0f9f4 release: 1.8.12 2024-01-26 14:32:42 +01:00
ansgarz
67d5ddbae9 release: 1.8.11 2024-01-26 14:29:45 +01:00
ansgarz
74a7137f00 bump version to: 1.8.11-dev 2024-01-26 12:10:18 +01:00
ansgarz
01f730f648 release: 1.8.10 2024-01-26 12:10:18 +01:00
ansgarz
ba17b46a01 bump version to: 1.8.10-dev 2024-01-26 12:10:08 +01:00
ansgarz
0e5e5cc800 release: 1.8.9 2024-01-26 12:10:08 +01:00
ansgarz
e25a682b3e bump version to: 1.8.9-dev 2024-01-26 12:09:47 +01:00
ansgarz
c9675f5adf release: 1.8.8 2024-01-26 12:09:47 +01:00
ansgarz
d86a6785f6 bump version to: 1.8.8-dev 2024-01-26 12:08:54 +01:00
ansgarz
2dcf2ebebc release: 1.8.7 2024-01-26 12:08:53 +01:00
ansgarz
90c3818d4a bump version to: 1.8.7-dev 2024-01-26 12:08:18 +01:00
ansgarz
331dcaed69 release: 1.8.6 2024-01-26 12:08:18 +01:00
ansgarz
1db967f690 bump version to: 1.8.6-dev 2024-01-26 12:02:25 +01:00
ansgarz
fd546c0a5c release: 1.8.5 2024-01-26 12:02:25 +01:00
ansgarz
67b18318ca add comments to build.py 2024-01-26 10:29:26 +01:00
ansgarz
be217035f2 bump version to: 1.8.5-dev 2024-01-12 11:29:56 +01:00
ansgarz
318384979c release: 1.8.4 2024-01-12 11:29:56 +01:00
ansgarz
7e89a94009 bump version to: 1.8.4-dev 2024-01-12 11:29:36 +01:00
ansgarz
86dadb56a7 release: 1.8.3 2024-01-12 11:29:36 +01:00
ansgarz
ce5cd6a245 bump version to: 3.4.4-dev 2024-01-12 11:20:06 +01:00
ansgarz
61ec4ddbb4 release: 3.4.3 2024-01-12 11:20:06 +01:00
ansgarz
641f034580 release: 3.4.2 2024-01-12 11:19:43 +01:00
ansgarz
03b9f694ef change version build.py 2024-01-12 11:17:05 +01:00
ansgarz
b3d2d79911 change primary and secondary release files 2024-01-12 11:14:48 +01:00
ansgarz
3802c8f5ea bump version to: 3.4.3-SNAPSHOT 2024-01-12 11:10:25 +01:00
ansgarz
2a833797ab release: 3.4.2 2024-01-12 11:10:25 +01:00
ansgarz
9d1ac64f97 bump version to: 3.4.2-SNAPSHOT 2024-01-12 11:09:54 +01:00
5 changed files with 92 additions and 8 deletions

View file

@ -1,3 +1,45 @@
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

View file

@ -3,7 +3,7 @@ plugins {
} }
version = "3.4.1" version = "4.0.1-SNAPSHOT"
group = "org.domaindrivenarchitecture.buildtest" group = "org.domaindrivenarchitecture.buildtest"

View file

@ -1,3 +1,4 @@
import os
from os import environ from os import environ
from pybuilder.core import task, init from pybuilder.core import task, init
from ddadevops import * from ddadevops import *
@ -6,10 +7,29 @@ name = "buildtest"
MODULE = "release" MODULE = "release"
PROJECT_ROOT_PATH = "." PROJECT_ROOT_PATH = "."
version = "1.8.1-dev" version = "4.0.1-dev"
@init @init
def initialize(project): 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):
"""
prompt for gopass if no artifacts need to be uploaded
usage: with option "-E artifacts" , e.g. "pyb -E artifacts patch_local"
"""
del os.environ["RELEASE_ARTIFACT_TOKEN"]
@init
def initialize2(project):
input = { input = {
"name": name, "name": name,
"module": MODULE, "module": MODULE,
@ -17,8 +37,8 @@ def initialize(project):
"project_root_path": PROJECT_ROOT_PATH, "project_root_path": PROJECT_ROOT_PATH,
"build_types": [], "build_types": [],
"mixin_types": ["RELEASE"], "mixin_types": ["RELEASE"],
"release_primary_build_file": "build.gradle", "release_primary_build_file": "build_to_test.py",
"release_secondary_build_files": ["build.py"], "release_secondary_build_files": ["package.json", "project.clj", "build.gradle", "build.py"],
"release_artifacts": ["README.md"], "release_artifacts": ["README.md"],
"release_artifact_server_url": "https://repo.prod.meissa.de", "release_artifact_server_url": "https://repo.prod.meissa.de",
"release_organisation": "meissa", "release_organisation": "meissa",
@ -26,25 +46,46 @@ def initialize(project):
} }
project.build_depends_on("ddadevops>=4.10.7") project.build_depends_on("ddadevops>=4.10.7")
build = ReleaseMixin(project, input) build = ReleaseMixin(project, input)
build.initialize_build_dir() build.initialize_build_dir()
@task @task
def patch(project): def patch(project):
"""
updates version to next patch level, creates a tag, creates new SNAPSHOT version,
commits build files (primary and secondary) and pushes to remote
"""
linttest(project, "PATCH") linttest(project, "PATCH")
release(project) release(project)
@task
def patch_local(project):
"""
updates version to next patch level,
commits build files (primary and secondary), DOES NOT push to remote
"""
linttest(project, "PATCH")
prepare(project)
@task @task
def minor(project): def minor(project):
"""
updates version to next minor level, creates a tag, creates new SNAPSHOT version,
commits build files (primary and secondary) and pushes to remote
"""
linttest(project, "MINOR") linttest(project, "MINOR")
release(project) release(project)
@task @task
def major(project): def major(project):
"""
updates version to next major level, creates a tag, creates new SNAPSHOT version,
commits build files (primary and secondary) and pushes to remote
"""
linttest(project, "MAJOR") linttest(project, "MAJOR")
release(project) release(project)
@ -68,6 +109,7 @@ def tag(project):
@task @task
def publish_artifacts(project): def publish_artifacts(project):
""" creates a release in <release_artifact_server_url> and uploads artifacts """
build = get_devops_build(project) build = get_devops_build(project)
print("PROTECTED_TOKEN_EXAMPLE" in environ) print("PROTECTED_TOKEN_EXAMPLE" in environ)
print(environ.get("PROTECTED_TOKEN_EXAMPLE")) print(environ.get("PROTECTED_TOKEN_EXAMPLE"))

View file

@ -33,7 +33,7 @@ default_task = "dev"
name = "ddadevops" name = "ddadevops"
MODULE = "not-used" MODULE = "not-used"
PROJECT_ROOT_PATH = "." PROJECT_ROOT_PATH = "."
version = "3.4.1" version = "4.0.1-dev"
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")]

View file

@ -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": "3.4.1", "version": "4.0.1-SNAPSHOT",
"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",