36 lines
685 B
YAML
36 lines
685 B
YAML
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:latest
|
|
pull: if-not-exists
|
|
commands:
|
|
- npm install
|
|
- 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 |