kubernetes_helper 1.24.0 → 1.24.1

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: f8e916c28cfa10adcc84326f3252adfdc7e9fb86254d4a43282dbe637f01f190
4
- data.tar.gz: ce6bde27c91768cd0f0e7f1d63354396cdb8a8073f9f236baeb12281d1e7661b
3
+ metadata.gz: be24c1c6683955dd3aaa71a017a53fb928aef8f0ae38e834d7e933c6ae2ec190
4
+ data.tar.gz: 97a909e2619f633a2c76f606c8d45ff59bccc4660cfdf29540afeb699f65c153
5
5
  SHA512:
6
- metadata.gz: d023e5e701b4b77fa73cda8e4d1dfffabb0723ce97315ca67bd44f119362bb85c3f92994a73930e39b4d6a39f3f4c4d7aaa773c86b4214fc66904fb33624aae3
7
- data.tar.gz: e1e33e00936e9b49ca2b07f2b2a9eec468e2a98cb63fa4b4194914d44fc42f1a06e323f2579d112ca308e61e6ae1e235b67af7c3571b22214461f2e46cf69c82
6
+ metadata.gz: 3cca324a7f49befa7179a371547a122edcd9cf880319b01e2af6892c6c6f1766c52c4d5817e8474ad220bbf500c82f7172ee477b117c2cecc0cd3f89bcf6c889
7
+ data.tar.gz: d276b401af604cd906d0170812909babfc99aafa300b1c3b85247066c91ad8ffd4ffff4b32ac208ea0d5f86f184c0ff43debadee06542cb449c609f2749f4caa
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KubernetesHelper
4
- VERSION = '1.24.0'
4
+ VERSION = '1.24.1'
5
5
  end
data/lib/templates/cd.sh CHANGED
@@ -22,15 +22,17 @@ DOCKER_BUILD_CMD="<%= continuous_deployment.docker_cmd || "docker #{continuous_d
22
22
  <%= include_template "_cd_google.sh" if continuous_deployment.image_name.include?('gcr.io/') %>
23
23
  <%= include_template "_cd_digital.sh" if continuous_deployment.image_name.include?('digitalocean.com/') %>
24
24
 
25
- ## Update new secrets defined in secrets.yml as ENV vars for deployments
26
- <% if continuous_deployment.update_deployment %>
27
- DEPLOY_IMAGE_TAG=$CI_COMMIT_SHA kubernetes_helper run_yml 'deployment.yml' 'kubectl apply'
25
+ <% unless ENV['SSH_PRIVATE_KEY'] %>
26
+ ## Update new secrets defined in secrets.yml as ENV vars for deployments
27
+ <% if continuous_deployment.update_deployment %>
28
+ DEPLOY_IMAGE_TAG=$CI_COMMIT_SHA kubernetes_helper run_yml 'deployment.yml' 'kubectl apply'
29
+ <% end %>
30
+
31
+ ## Apply deployments
32
+ IFS=',' read -r -a deployments <<< "$DEPLOYMENTS"
33
+ for deployment in "${deployments[@]}"; do
34
+ [ -z "$deployment" ] && continue # if empty value
35
+
36
+ <%= include_template "_cd_apply_images.sh" %>
37
+ done
28
38
  <% end %>
29
-
30
- ## Apply deployments
31
- IFS=',' read -r -a deployments <<< "$DEPLOYMENTS"
32
- for deployment in "${deployments[@]}"; do
33
- [ -z "$deployment" ] && continue # if empty value
34
-
35
- <%= include_template "_cd_apply_images.sh" %>
36
- done
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kubernetes_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.24.0
4
+ version: 1.24.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - owen2345
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-04-05 00:00:00.000000000 Z
11
+ date: 2024-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: erb