Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
pennyZZZZ committed Oct 16, 2023
1 parent 568dd44 commit 0ce64a2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 18 deletions.
5 changes: 2 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/bin/bash -xv
docker run -t --rm -e NODE_TLS_REJECT_UNAUTHORIZED=0 -v $PWD:/app -w /app node:18 npm install --quiet --progress=false && \
docker run -t --rm -v $PWD:/app -w /app node:18 npm run build

docker run -t --rm -e NODE_TLS_REJECT_UNAUTHORIZED=0 -v $PWD:/app -w /app node:6 npm install --quiet --progress=false && \
docker run -t --rm -v $PWD:/app -w /app node:6 npm run build
4 changes: 2 additions & 2 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash -xv
docker run -t --rm -e NODE_TLS_REJECT_UNAUTHORIZED=0 -v $PWD:/app -w /app node:18 npm install --quiet --progress=false && \
docker run -t --rm -v $PWD:/app -w /app node:18 npm run deploy
docker run -t --rm -e NODE_TLS_REJECT_UNAUTHORIZED=0 -v $PWD:/app -w /app node:6 npm install --quiet --progress=false && \
docker run -t --rm -v $PWD:/app -w /app node:6 npm run deploy
20 changes: 7 additions & 13 deletions serverless.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
service: robin

frameworkVersion: ">=2.0.0 <3.0.0"
frameworkVersion: ">=1.0.0 <2.0.0"

provider:
name: aws
runtime: nodejs18.x
stage: "${env:SLICE}"
region: "${env:RQP_REGION}"
stackTags:
Name: "${env:APPLICATION}-${env:SLICE}"
Application: "${env:APPLICATION}"
LineOfBusiness: "${env:LINE_OF_BUSINESS}"
Stage: "${env:STAGE}"
Slice: "${env:SLICE}"
Zone: "${env:ZONE}"
runtime: nodejs10.x
stage: dev
region: ap-southeast-2

iamRoleStatements:
- Effect: "Allow"
Action:
Expand All @@ -27,8 +21,8 @@ functions:
REPO_NAMES: ${env:REPO_NAMES}
AWS_ACCOUNT_ID: ${env:AWS_ACCOUNT_ID}
DRY_RUN: ${env:DRY_RUN, 'true'}
ECR_REGION: ${env:RQP_REGION}
ECR_REGION: ${env:ECR_REGION, 'us-east-1'}
SLACK_WEBHOOK: ${env:SLACK_WEBHOOK}
timeout: 45
events:
- schedule: rate(1 day)
- schedule: rate(1 day)

0 comments on commit 0ce64a2

Please sign in to comment.