before_script: - export VERSION=1.0.0 - chmod +x packaging/build-package.sh packaging/package-upload.sh stages: - build - package build: stage: build only: - master image: node:latest script: - npm install - npm run build artifacts: paths: - dist package: stage: package only: - master image: tystuyfzand/fpm script: - packaging/build-package.sh - packaging/package-upload.sh artifacts: paths: - build