prima-twig 0.49.10 → 0.49.11
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/bin/twig-feature +8 -4
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b16265bcb401712b1630319a7806bbed7f87ef6e31f1afcb24b0243918efe4b3
|
|
4
|
+
data.tar.gz: 5d7a5b4a78a2a4821c08ec8324a143b74a81ccb9afe6485c79255e2fafbc978f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a097082c85d8ddf953f7042777151da34a6ce18c267acfa2d7304e9a86c506737bbf1d7c59150355fa88830393142d71167784c1ae945b3be846a04b492d0d3b
|
|
7
|
+
data.tar.gz: 3648ed6ae6232e0290a0f27a9784f3fdae798f665413c301d4bca584512868bf211264c96c0c52fb9467a38ea85a98907d071e035dce548d9fdfa6c14072d0b9
|
data/bin/twig-feature
CHANGED
|
@@ -2733,7 +2733,7 @@ class Release
|
|
|
2733
2733
|
exec_step 'mv docker-compose-ci.yml docker-compose.yml'
|
|
2734
2734
|
exec_step 'prepare-docker-compose --directory prima'
|
|
2735
2735
|
exec_step 'sed -i "s/\\/home\\/app/\\/root/g" docker-compose.yml'
|
|
2736
|
-
`sed -i 's/"@prima-assicurazioni/pyxis-npm": ".*",/"@prima-assicurazioni/pyxis-npm": "#{
|
|
2736
|
+
`sed -i 's/"@prima-assicurazioni/pyxis-npm": ".*",/"@prima-assicurazioni/pyxis-npm": "#{@pyxis_version}",/' package.json`
|
|
2737
2737
|
[
|
|
2738
2738
|
"bin/qa_build_artifact.sh #{branch_name} #{'update' if @deploy_update}"
|
|
2739
2739
|
].each do |cmd|
|
|
@@ -2761,15 +2761,19 @@ class Release
|
|
|
2761
2761
|
|
|
2762
2762
|
decrypt_secrets()
|
|
2763
2763
|
|
|
2764
|
+
published_versions = `npm view prima-assicurazioni/pyxis-npm versions --json`
|
|
2765
|
+
qa_versions = JSON.parse(published_versions).select{ |version| version.include? get_pyxis_version(deploy_id) }
|
|
2766
|
+
|
|
2767
|
+
@pyxis_version = "0.#{get_pyxis_version(deploy_id)}.#{qa_versions.size}"
|
|
2768
|
+
|
|
2764
2769
|
exec_step 'cp docker-compose.yml docker-compose-ci.yml'
|
|
2765
2770
|
exec_step 'prepare-docker-compose --directory pyxis-npm && cp docker-compose-qainit.yml docker-compose.yml && mv .fakenpmrc .npmrc'
|
|
2766
|
-
`sed -i '3s/".*/"version": "#{
|
|
2771
|
+
`sed -i '3s/".*/"version": "#{@pyxis_version}",/' package.json`
|
|
2767
2772
|
[
|
|
2768
2773
|
"docker-compose build web",
|
|
2769
2774
|
"docker-compose run -w $PWD -u root -e NPM_TOKEN=$NPM_TOKEN --entrypoint /bin/sh web \
|
|
2770
2775
|
'-c' 'yarn install && \
|
|
2771
2776
|
yarn build:prod && \
|
|
2772
|
-
npm unpublish prima-assicurazioni/pyxis-npm@#{get_pyxis_version(deploy_id)} && \
|
|
2773
2777
|
npm publish'"
|
|
2774
2778
|
].each do |cmd|
|
|
2775
2779
|
execute_command cmd
|
|
@@ -2781,7 +2785,7 @@ class Release
|
|
|
2781
2785
|
end
|
|
2782
2786
|
|
|
2783
2787
|
def get_pyxis_version(deploy_id)
|
|
2784
|
-
|
|
2788
|
+
deploy_id.delete '[a-z0]'
|
|
2785
2789
|
end
|
|
2786
2790
|
|
|
2787
2791
|
def cleanup_containers
|