„.drone.yml“ ändern

Docker image bauen und nutzen
This commit is contained in:
Christian Seyfferth 2020-05-07 09:46:18 +02:00
parent 307632a7df
commit 389b86d24c

View File

@ -3,13 +3,22 @@ type: docker
name: default name: default
steps: steps:
- name: build - name: Build Docker image
image: node:14-alpine 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: commands:
- npm install gulp
- npm install - npm install
- gulp - gulp
- zip public.zip dist/* - zip public.zip dist/*
- name: gitea_release - name: gitea_release
image: plugins/gitea-release image: plugins/gitea-release
settings: settings:
@ -19,4 +28,8 @@ steps:
files: dist/* files: dist/*
note: CHANGELOG.md note: CHANGELOG.md
when: when:
event: tag event: tag
volumes:
- name: docker_sock
host: path: /var/run/docker.sock