diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..03a448d --- /dev/null +++ b/.drone.yml @@ -0,0 +1,36 @@ +kind: pipeline +type: docker +name: default + +steps: +- name: Build DockerImage + 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:${DRONE_COMMIT} + commands: + - which gulp + - npm install + - /usr/local/bin/gulp + - zip public.zip dist/* + +- name: Upload Artifacts + image: plugins/gitea-release + settings: + base_url: https://git.chrosey.de + api_key: + from_secret: gitea_token + files: public.zip + note: CHANGELOG.md + when: + event: tag + +volumes: +- name: docker_sock + host: + path: /var/run/docker.sock \ No newline at end of file diff --git a/Scripte/Dockerfile b/Scripte/Dockerfile new file mode 100644 index 0000000..7f08a7b --- /dev/null +++ b/Scripte/Dockerfile @@ -0,0 +1,3 @@ +FROM node:12-alpine +RUN npm install -g gulp +RUN npm install \ No newline at end of file diff --git a/src/index.html b/src/index.html index 3ae121c..bd6f216 100644 --- a/src/index.html +++ b/src/index.html @@ -18,7 +18,18 @@ -