kubernetes_helper 1.23.4 → 1.23.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kubernetes_helper/version.rb +1 -1
- data/lib/templates/_cd_digital.sh +15 -8
- data/lib/templates/ingress.yml +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f100682b492030c023338248808bb39b8b32b9f8bbe8e62695e9046827ef5cb
|
4
|
+
data.tar.gz: d5bf9901f057c8c62aef123c50d29840baaac54b986e0023bf244e59de4f1ac2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a94c4b53a2fcfa30a27171d2b8948375ea327af8c09a2667afec7d99848f66a3fb5a37192e6c3f9965d0bd8ca1b92e69a87931a591b74f823e677efcbf83bf8
|
7
|
+
data.tar.gz: 95d0111d9f72af8d75bd1c9c4f06ed4ba960962903a8ed6ee2a72de4cb22544e8de5069687ddbbe15bed551f83a2c176c6c7679c88454a78318b1734aa3ea282
|
@@ -1,18 +1,25 @@
|
|
1
|
-
# Download and install doctl
|
2
1
|
if [ -z "$(which doctl)" ]; then
|
3
|
-
|
2
|
+
wget https://github.com/digitalocean/doctl/releases/download/v1.72.0/doctl-1.72.0-linux-amd64.tar.gz
|
3
|
+
tar xf ./doctl-1.72.0-linux-amd64.tar.gz
|
4
|
+
mv ./doctl /usr/local/bin
|
4
5
|
fi
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
fi
|
7
|
+
## login doctl
|
8
|
+
doctl auth init --access-token $KB_AUTH_TOKEN
|
9
|
+
doctl registry login --access-token $KB_AUTH_TOKEN --expiry-seconds 1200
|
10
10
|
|
11
11
|
## Build and push containers
|
12
|
-
echo "****** building image
|
12
|
+
echo "****** building image...$DOCKER_BUILD_CMD"
|
13
13
|
eval $DOCKER_BUILD_CMD
|
14
|
+
|
15
|
+
echo "****** pushing image...$DEPLOY_NAME"
|
14
16
|
docker push $DEPLOY_NAME
|
15
17
|
|
16
|
-
echo "****** tagging image $DEPLOY_NAME as $LATEST_NAME"
|
18
|
+
echo "****** tagging image... $DEPLOY_NAME as $LATEST_NAME"
|
17
19
|
docker tag $DEPLOY_NAME $LATEST_NAME
|
18
20
|
docker push $LATEST_NAME
|
21
|
+
|
22
|
+
## enable registry to update deployment
|
23
|
+
<% if continuous_deployment.cluster_name %>
|
24
|
+
doctl kubernetes cluster kubeconfig save --expiry-seconds 600 <%= continuous_deployment.cluster_name %>
|
25
|
+
<% end %>
|
data/lib/templates/ingress.yml
CHANGED
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.23.
|
4
|
+
version: 1.23.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- owen2345
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: erb
|