kubernetes_helper 1.12.4 → 1.12.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac69b9f6972032067714455719b0c5563e5f2c0fed0a82a21665fdbae3b7cf41
4
- data.tar.gz: a5b8d1b32f9fe5d9d8cdc6e96e45e0d96090db42f61bbfb11c896bd6ec92c5dd
3
+ metadata.gz: 671e4935f2fa146de59fab6b0bedc9a994fb061c106d14ecad194360b4433a7e
4
+ data.tar.gz: 5deea0563a57c83b31c38870548c43ed8f97400187b83d4166e2879cb83904da
5
5
  SHA512:
6
- metadata.gz: 1d0189b8f37392fcaeba4e8982936f3ddc8fd6bfd4866cd47f04b5f8989e12f95863de50fb6a9201f7a58ca07ca00c4a1ceb1445fe4857eed07ad79a83c1ca6c
7
- data.tar.gz: d39a3d77f973eb1e05c8dc5357b22102f6cf7bb0baa24ccbeb96d88a9c134b4f1ded05c40588e6e4baff74adf0d46d709897e3123798c172f60c142a775bbbb8
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`
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KubernetesHelper
4
- VERSION = '1.12.4'
4
+ VERSION = '1.12.5'
5
5
  end
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"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kubernetes_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.4
4
+ version: 1.12.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - owen2345