diff --git a/ps_spec.yml b/ps_spec.yml index 7ca26b85..8e9dd508 100644 --- a/ps_spec.yml +++ b/ps_spec.yml @@ -51,16 +51,37 @@ stages: - echo done outputs: file: ./.ps_outputs/* + - + name: build-collector-auth0 + image: 422372788747.dkr.ecr.us-east-1.amazonaws.com/al-paws-collector-pipeline:latest + compute_size: small_arm + when: + - pull_request: + trigger_phrase: build-collector-auth0 + commands: + - source $NVM_DIR/nvm.sh && nvm use 18 + - export ALPS_SERVICE_VERSION=$(node -p "require('./collectors/auth0/package.json').version") + # - echo "ALPS_SERVICE_VERSION=$ALPS_SERVICE_VERSION" >> $GITHUB_ENV + - npm install + - make package + - mkdir auth0-collecctor + - cp -r cfn al-auth0-collector.zip al-auth0-collector.json auth0-collector + env: + - ALPS_SERVICE_VERSION: ${{ env.ALPS_SERVICE_VERSION }} + outputs: + file: ./auth0-collecctor + packagers: + - basic - - name: build-collector-auth0 + - name: build-collector-carbonback image: 422372788747.dkr.ecr.us-east-1.amazonaws.com/al-paws-collector-pipeline:latest compute_size: small_arm when: - pull_request: - trigger_phrase: build-collector-auth0 + trigger_phrase: build-collector-carbonback commands: - source $NVM_DIR/nvm.sh && nvm use 18 - - export ALPS_SERVICE_VERSION=$(node -p "require('./collectors/auth0/package.json').version") + - export ALPS_SERVICE_VERSION=$(node -p "require('./collectors/carbonblack/package.json').version") # - echo "ALPS_SERVICE_VERSION=$ALPS_SERVICE_VERSION" >> $GITHUB_ENV - npm install - make package @@ -68,28 +89,7 @@ stages: - cp -r cfn al-auth0-collector.zip al-auth0-collector.json auth0-collector env: - ALPS_SERVICE_VERSION: ${{ env.ALPS_SERVICE_VERSION }} - outputs: - file: ./auth0-collecctor - packagers: - - basic - - - name: build-collector-carbonback - image: 422372788747.dkr.ecr.us-east-1.amazonaws.com/al-paws-collector-pipeline:latest - compute_size: small_arm - when: - - pull_request: - trigger_phrase: build-collector-carbonback - commands: - - source $NVM_DIR/nvm.sh && nvm use 18 - - export ALPS_SERVICE_VERSION=$(node -p "require('./collectors/carbonblack/package.json').version") - # - echo "ALPS_SERVICE_VERSION=$ALPS_SERVICE_VERSION" >> $GITHUB_ENV - - npm install - - make package - - mkdir auth0-collecctor - - cp -r cfn al-auth0-collector.zip al-auth0-collector.json auth0-collector - env: - - ALPS_SERVICE_VERSION: ${{ env.ALPS_SERVICE_VERSION }} outputs: file: ./auth0-collecctor packagers: - - basic \ No newline at end of file + - basic