--- kind: pipeline type: docker name: Build backend steps: - name: Build backend image: nixos/nix volumes: - name: cache path: /drone-shared commands: - cd backend - nix-channel --update - nix-build - cp result /drone-shared/jitsi-rooms-docker-image trigger: event: include: - tag - push volumes: - name: drone-shared host: path: /tmp/drone-shared --- kind: pipeline type: docker name: Build frontend steps: - name: Build frontend image: node:alpine commands: - cd frontend - yarn install - yarn build - cp -r dist /drone-shared/ trigger: trigger: event: - tag - push volumes: - name: drone-shared host: path: /tmp/drone-shared