kubernetes_helper 1.12.4 → 1.12.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/kubernetes_helper/version.rb +1 -1
- data/lib/templates/cd.sh +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 671e4935f2fa146de59fab6b0bedc9a994fb061c106d14ecad194360b4433a7e
|
4
|
+
data.tar.gz: 5deea0563a57c83b31c38870548c43ed8f97400187b83d4166e2879cb83904da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cea87bbc5e92dbf20c4cabd3f6bfc88e78027bb1b349abaa43b39335e4a3aa4da7a57d4260e6415fdd3934e845282859062943d292ef63807fe48fb678aad6c2
|
7
|
+
data.tar.gz: b767e7a995c1b8c4300e11df0c1df928b6865beffb320810864a504b94e39b27820e7fffc5da0cc2e25a349535f9583bbd07112eb36b023ea84268e181e10892
|
data/README.md
CHANGED
@@ -62,6 +62,7 @@ Below settings are used when running Continuous Deployment
|
|
62
62
|
- `continuous_deployment.docker_build_cmd`: Docker command to build the corresponding image. Sample: `build --target production -f Dockerfile `
|
63
63
|
- `continuous_deployment.update_deployment` (Boolean, default: false): If true permits to re-generate and update the k8s deployment(s) before applying the new version (new docker image)
|
64
64
|
- `continuous_deployment.before_building_image` (String, default: empty): Add the ability to enter commands before building docker image
|
65
|
+
- `continuous_deployment.after_building_image` (String, default: empty): Add the ability to enter commands after building docker image
|
65
66
|
|
66
67
|
Below settings are used when configuring the application in the k8s environment
|
67
68
|
- `deployment.name` (String): Web deployment name (Note: Underscores are not accepted). Sample: `my-app`
|
data/lib/templates/cd.sh
CHANGED
@@ -37,13 +37,14 @@ then
|
|
37
37
|
fi
|
38
38
|
|
39
39
|
|
40
|
-
<%=continuous_deployment.before_building_image || ''%>
|
41
40
|
ALREADY_DEPLOYED="$(gcloud container images list-tags --format='get(tags)' $IMAGE_NAME | grep $CI_COMMIT_SHA || :;)"
|
42
41
|
if [ -z $ALREADY_DEPLOYED ]
|
43
42
|
then
|
44
43
|
## Build and push containers
|
45
44
|
echo "****** image not created yet, building image..."
|
45
|
+
<%=continuous_deployment.before_building_image || ''%>
|
46
46
|
docker $DOCKER_BUILD_CMD -t $DEPLOY_NAME .
|
47
|
+
<%=continuous_deployment.after_building_image || ''%>
|
47
48
|
docker push $DEPLOY_NAME
|
48
49
|
else
|
49
50
|
echo "****** image was already created: $ALREADY_DEPLOYED"
|