diff --git a/ps_spec.yml b/ps_spec.yml index 15fe570a..0803b66a 100644 --- a/ps_spec.yml +++ b/ps_spec.yml @@ -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: @@ -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