afterlife 1.9.0 → 1.9.1
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/lib/afterlife/cli.rb +1 -0
- data/lib/afterlife/deploy/kubernetes_deployment.rb +11 -0
- data/lib/afterlife/version.rb +1 -1
- 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: f8650a093ec6774a7812697dc8f762067645b424567ac91bec866ba7078b204f
|
|
4
|
+
data.tar.gz: 3a20a656d92cf490f67bacbf83a833c22060af79909001afd2ece07d8c9c8f41
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6e303149d428b351c0f55b488c76efe2ad4157ba401e1354963441c6771326d68121fe99b660d9b42e6cd1035ad08311a6d3b99f6ac529bf5c2731c61883eb94
|
|
7
|
+
data.tar.gz: 35cdd960ca84d179e106c73d4967b9fa076dc28a6227a063515025ad69481ed1eac10c4d665d116292a439a8de809b3a494643368f5b26a52da5d7b04eb3602d
|
data/lib/afterlife/cli.rb
CHANGED
|
@@ -34,6 +34,7 @@ module Afterlife
|
|
|
34
34
|
option 'no-install', type: :boolean
|
|
35
35
|
option 'no-auth', type: :boolean
|
|
36
36
|
option 'no-apply', type: :boolean
|
|
37
|
+
option 'no-latest', type: :boolean
|
|
37
38
|
option 'dry-run', type: :boolean
|
|
38
39
|
option 'skip-after-hooks', type: :boolean
|
|
39
40
|
option :yes, type: :boolean
|
|
@@ -19,6 +19,7 @@ module Afterlife
|
|
|
19
19
|
authenticate_command,
|
|
20
20
|
# from DockerDeployment
|
|
21
21
|
build_command,
|
|
22
|
+
set_latest_image_command,
|
|
22
23
|
set_image_command,
|
|
23
24
|
apply_kubernetes_settings,
|
|
24
25
|
].flatten.compact
|
|
@@ -41,6 +42,16 @@ module Afterlife
|
|
|
41
42
|
"#{registry}/#{full_image_name(target)}:#{repo.current_revision}"
|
|
42
43
|
end
|
|
43
44
|
|
|
45
|
+
def set_latest_image_command
|
|
46
|
+
return unless Afterlife.current_stage.name.to_sym == :qa
|
|
47
|
+
return if options['no-latest']
|
|
48
|
+
|
|
49
|
+
targets.map do |target|
|
|
50
|
+
image = "#{registry}/#{full_image_name(target)}"
|
|
51
|
+
"docker buildx imagetools create --tag #{image}:latest #{image}:#{repo.current_revision}"
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
|
|
44
55
|
def full_image_name(target)
|
|
45
56
|
return image_name if target == 'app'
|
|
46
57
|
|
data/lib/afterlife/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: afterlife
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.9.
|
|
4
|
+
version: 1.9.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Genaro Madrid
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-07-
|
|
11
|
+
date: 2026-07-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|