node

node

@emacsen i set it up for the co-workers over a year ago. a couple of projects use it heavily (do all deployment through it). one other project prototyped using a mac mini to automatically build unity3d games for iOS, using the mac os native drone runner. they ended up not using it in production, though for logistical reasons, not technical.

the projects that use it use the docker-based drone-runner to make builds or do deployments.

replies
0
announces
0
likes
1

@emacsen @raucao you can add a custom rule to handle the git clone step. for example, one co-worker’s .drone.yml starts with

---
kind: pipeline
type: docker
name: Deployment to Firebase Hosting

platform:
  os: linux
  arch: amd64

# tell drone not to do the git clone
clone:
  disable: true

# steps executed in order
steps:
  - name: git-clone
    image: alpine/git:1.0.7
    commands:
      - git clone https://bitbucket.org/team/proj-1
      - cd proj-1 && git checkout $DRONE_COMMIT

  - name: setup
    image: node:lts
    commands:
      - echo 'prefix = /data/.npm-packages' > /root/.npmrc
[...]

for the directories you need to build, maybe you can write a script that figures out what changed in the most recent commit, and figure out what to rebuild. run it as a drone step.