@candlerip/shared-devops 0.0.95 → 0.0.102

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candlerip/shared-devops",
3
- "version": "0.0.95",
3
+ "version": "0.0.102",
4
4
  "scripts": {
5
5
  "publish-package": "bash ./_devops/publish-package.sh"
6
6
  },
@@ -8,6 +8,7 @@
8
8
  "crs-cdk-deploy": "scripts/cdk/cdk-deploy.sh",
9
9
  "crs-create-env-file": "scripts/environment/create-env-file.sh",
10
10
  "crs-create-env-file-value": "scripts/environment/create-env-file-value.sh",
11
+ "crs-ec2-run": "scripts/ec2/ec2-run.sh",
11
12
  "crs-publish-to-docker-hub": "./scripts/docker/publish-to-docker-hub.sh",
12
13
  "crs-eslint": "scripts/eslint/eslint.sh",
13
14
  "crs-publish-to-npm-registry": "scripts/npm/publish-to-npm-registry.sh",
@@ -1,7 +1,6 @@
1
- #!/usr/bin/env bash
1
+ #!/usr/bin/env bash
2
2
 
3
3
  DOCKERFILE=${2:-"Dockerfile"}
4
4
 
5
- echo "$DOCKER_ACCESS_TOKEN" | docker login -u $DOCKER_USERNAME --password-stdin
6
5
  docker build -f $DOCKERFILE -t reveszimre/$1 .
7
6
  docker push reveszimre/$1
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ EC2_IP_ADDRESS=$(aws ssm get-parameter --name "EC2_IP_ADDRESS" --query "Parameter.Value" --output text)
5
+ ssh -i "~/.ssh/candlerip.pem" -o StrictHostKeyChecking=no ubuntu@$EC2_IP_ADDRESS $1
@@ -1,8 +1,7 @@
1
1
  #!/usr/bin/env bash
2
2
  set -e
3
3
 
4
- npx crs-create-env-file NPM_ACCESS_TOKEN .env
5
- source .env
4
+ NPM_ACCESS_TOKEN=$(aws ssm get-parameter --name "NPM_ACCESS_TOKEN" --query "Parameter.Value" --output text)
6
5
 
7
6
  npm config set //registry.npmjs.org/:_authToken $NPM_ACCESS_TOKEN
8
7
  npm publish $1 --access public