@candlerip/shared-devops 0.0.26 → 0.0.29

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.
package/.env ADDED
@@ -0,0 +1,2 @@
1
+ AMAZONWEBSERVICES_REGION=eu-central-1
2
+ AMAZONWEBSERVICES_S3_IMAGES_BUCKET_NAME=images.development.candlerip.com
@@ -14,7 +14,8 @@ do
14
14
  PARAMS=$(aws ssm get-parameters --names $NAMES --output text --query "Parameters[*].{Name:Name,Value:Value}" --with-decryption | sed -E 's/\s+/=/g')
15
15
  PARAMS1="${PARAMS[@]//_DEVELOPMENT/}"
16
16
  PARAMS2="${PARAMS1[@]//_PRODUCTION/}"
17
- ENVS+=("$PARAMS2")
17
+ PARAMS3="${PARAMS2[@]//AMAZONWEBSERVICES/AWS}"
18
+ ENVS+=("$PARAMS3")
18
19
  fi
19
20
  done
20
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candlerip/shared-devops",
3
- "version": "0.0.26",
3
+ "version": "0.0.29",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "crsd-create-env-file": "./environment/create-env-file.sh",
@@ -1,4 +1,4 @@
1
- #!/usr/bin/bash
1
+ #!/bin/sh
2
2
  set -e
3
3
 
4
4
  rm -rf dist
@@ -1,4 +1,4 @@
1
- #!/usr/bin/bash
1
+ #!/bin/sh
2
2
  set -e
3
3
 
4
4
  rm -rf dist
package/ec2/ec2-deploy.sh DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -e
3
-
4
- ssh -o StrictHostKeyChecking=no ubuntu@$EC2_IP_ADDRESS "npm run prod $2"
5
-
6
- echo "$EC2_SSH_KEY" > ssh_key.pem
7
- chmod 600 ssh_key.pem
8
- ssh -i "ssh_key.pem" -o StrictHostKeyChecking=no ubuntu@$EC2_IP_ADDRESS "pwd && ls -la /etc/gitlab"