diff --git a/.drone.yml b/.drone.yml index 8e58a6a..e829e30 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,13 +3,22 @@ type: docker name: default steps: -- name: build - image: node:14-alpine +- name: Build Docker image + image: docker + volumes: + - name: docker_sock + path: /var/run/docker.sock + commands: + - docker build --no-cache -t gulp-node:${DRONE_COMMIT} -f Scripte/Dockerfile + +- name: Run Gulp + image: gulp-node:latest + pull: if-not-exists commands: - - npm install gulp - npm install - gulp - zip public.zip dist/* + - name: gitea_release image: plugins/gitea-release settings: @@ -19,4 +28,8 @@ steps: files: dist/* note: CHANGELOG.md when: - event: tag \ No newline at end of file + event: tag + +volumes: +- name: docker_sock + host: path: /var/run/docker.sock \ No newline at end of file