From 389b86d24c5b95f078c6dec20e6787263e6f5f7a Mon Sep 17 00:00:00 2001 From: Christian Seyfferth Date: Thu, 7 May 2020 09:46:18 +0200 Subject: [PATCH] =?UTF-8?q?=E2=80=9E.drone.yml=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Docker image bauen und nutzen --- .drone.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) 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