diff --git a/ps_spec.yml b/ps_spec.yml index 479f2fa1..7ca26b85 100644 --- a/ps_spec.yml +++ b/ps_spec.yml @@ -50,4 +50,46 @@ stages: fi - echo done outputs: - file: ./.ps_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-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