„.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
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
event: tag
volumes:
- name: docker_sock
host: path: /var/run/docker.sock