36 lines
680 B
YAML

kind: pipeline
type: docker
name: default
steps:
- 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
- zip public.zip dist/*
- name: gitea_release
image: plugins/gitea-release
settings:
base_url: https://git.chrosey.de
api_key:
from_secret: gitea_token
files: dist/*
note: CHANGELOG.md
when:
event: tag
volumes:
- name: docker_sock
host:
path: /var/run/docker.sock