pipeline {
  agent { label 'dagger' }

  stages {
    stage("dagger") {
      steps {
        sh '''
            npm ci
            cd /usr/local && { curl -L https://dl.dagger.io/dagger/install.sh | sh; cd -; }
            dagger run node index.mjs
        '''
      }
    }
  }
}
