Skip to content

Commit

Permalink
Update ps_spec.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rakhimundhada15 authored Jan 24, 2024
1 parent 3bdfc0c commit 4fc98fd
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions ps_spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,21 +55,17 @@ stages:
when:
- pull_request:
trigger_phrase: build-collector-auth0
env:
ALPS_SERVICE_VERSION: "1.1.56"
ALPS_SERVICE_NAME: "paws-collector/auth0"
commands:
- source $NVM_DIR/nvm.sh && nvm use 18
- cd collectors/auth0
- export ALPS_SERVICE_VERSION=$(node -p "require('./package.json').version")
- echo "ALPS_SERVICE_VERSION=$ALPS_SERVICE_VERSION"
- export ALPS_SERVICE_NAME=paws-$(node -p "require('./package.json').name")
- echo "ALPS_SERVICE_NAME=$ALPS_SERVICE_NAME"
- npm install
- make package
- mkdir auth0-collector
- cp -r cfn al-auth0-collector.zip al-auth0-collector.json auth0-collector
- zip -r ../../auth0-collector.zip auth0-collector
- ls -la
- mkdir ../../auth0-collector
- cp -r cfn al-auth0-collector.zip al-auth0-collector.json ../../auth0-collector
outputs:
file: ./auth0-collector*
packagers:
Expand All @@ -85,14 +81,16 @@ stages:
- source $NVM_DIR/nvm.sh && nvm use 18
- cd collectors/carbonblack
- export ALPS_SERVICE_VERSION=$(node -p "require('./package.json').version")
# - echo "ALPS_SERVICE_VERSION=$ALPS_SERVICE_VERSION" >> $GITHUB_ENV
- echo "ALPS_SERVICE_VERSION=$ALPS_SERVICE_VERSION"
- export ALPS_SERVICE_NAME=paws-$(node -p "require('./package.json').name")
- echo "ALPS_SERVICE_NAME=$ALPS_SERVICE_NAME"
- npm install
- make package
- mkdir carbonback-collector
- cp -r cfn al-auth0-collector.zip al-auth0-collector.json carbonback-collector
- mkdir ../../carbonback-collector
- cp -r cfn al-carbonblack-collector.zip al-carbonblack-collector.json ../../carbonback-collector
env:
ALPS_SERVICE_VERSION: "${{ ALPS_SERVICE_VERSION }}"
outputs:
file: ./carbonback-collector
file: ./carbonback-collector*
packagers:
- basic

0 comments on commit 4fc98fd

Please sign in to comment.