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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ded787195d0197794e9ce63aab421fd0b9f4168208bab96b1cdab4e34f22d955
4
- data.tar.gz: f9305bba34772dbe134eedad518d67ad371e85a1e8b6f28b25785f54f8737e58
3
+ metadata.gz: f8650a093ec6774a7812697dc8f762067645b424567ac91bec866ba7078b204f
4
+ data.tar.gz: 3a20a656d92cf490f67bacbf83a833c22060af79909001afd2ece07d8c9c8f41
5
5
  SHA512:
6
- metadata.gz: decbc189d4fc9e422ab524fdd80adc4234d919542350db532bc04a69a48cdef40220fde5331fb94fa77c1427a59df5d4328f7d454e50d8a8b20d336c239e976b
7
- data.tar.gz: 394711b68721f95e338b558c51d86581537b6a0ddf7f4dcd31646420cf0a9cebcdfbff60ef2395f4b13acaae1e44856aac5b57b0d690402f46c51b8053a94d81
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Afterlife
4
- VERSION = '1.9.0'
4
+ VERSION = '1.9.1'
5
5
  end
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.0
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-03 00:00:00.000000000 Z
11
+ date: 2026-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday