afterlife 1.7.1 → 1.7.2

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: 93343bbd5356717804af9a955b10546a438184610540ec7b369e4f2f60877e53
4
- data.tar.gz: 2c15bb65c5b9d901e9be8e0697bffcc7d8892145f1bf61150bad66701ea68a9c
3
+ metadata.gz: acd1912f0524e2efc93ab47e2f43fed17487fc5b05cff9c56f25e275c4501790
4
+ data.tar.gz: 3f658d550f54904680eb77ab7333bcde9bfeea2b5dbe4f19b634132ac45276e4
5
5
  SHA512:
6
- metadata.gz: 493574dee7d741117ee555c34e49779d550895607bf05e41f678c22a59dabd6a51214b317c3a9e39347fb5e37ef663ab5755e225f63de7d90ba6dbd0db8d4aa0
7
- data.tar.gz: b1f8c99175ecf36c13785cfa8e59cbe4541d726dfc3dde667cbb80fbda8db8a1adf530f4f1ce3d1f11a55cd32e4a14643d493f3dcefcdcb92eebdf46b08f4c4c
6
+ metadata.gz: a14e900ab52e37392e5a2ebe142257a72db3a0c79b47947975f28d1ac3c58f4c6085c22027935c3be4bd2fda9ac38b1464b04a8e7c60bc6ce8c141c723c9e1b8
7
+ data.tar.gz: 316829b117b8b6f7b98d6582244e9bf269bc7e0ca59608c93dd50e54b1a10b25c0bed5272ab143d8261fb61349b97bdd236317ed41402710c55a68db2da3bbbd
@@ -11,14 +11,12 @@ module Afterlife
11
11
  Cdn.url(repo)
12
12
  end
13
13
 
14
- def setup # rubocop:disable Mitrics/AbcSize
14
+ def setup
15
15
  # only use the defined AWS_PROFILE if its not already been defined
16
16
  repo.env.set(
17
17
  'AWS_BUCKET' => Afterlife.current_stage.bucket,
18
18
  'AWS_REGION' => Afterlife.current_stage.region,
19
19
  )
20
- # IN CI we dont need an AWS_PROFILE and setting it causes aws s3 sync to fail
21
- repo.env.set('AWS_PROFILE' => Afterlife.current_stage.profile) unless ENV['CI']
22
20
  # in nested deployments we need the current path, not the parent's
23
21
  repo.env.set!('S3_FULL_PATH' => s3_full_path)
24
22
  end
@@ -40,6 +40,8 @@ module Afterlife
40
40
  'CURRENT_BRANCH' => Afterlife.current_repo.current_branch,
41
41
  'AFTERLIFE_STAGE' => Afterlife.current_stage.name,
42
42
  )
43
+ # IN CI we dont need an AWS_PROFILE and setting it causes aws s3 sync to fail
44
+ Afterlife.current_repo.env.set!('AWS_PROFILE' => Afterlife.current_stage.profile) unless ENV['CI']
43
45
  end
44
46
  end
45
47
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Afterlife
4
- VERSION = '1.7.1'
4
+ VERSION = '1.7.2'
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.7.1
4
+ version: 1.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genaro Madrid
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-08-22 00:00:00.000000000 Z
11
+ date: 2024-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor