„.drone.yml“ ändern
Docker image bauen und nutzen
This commit is contained in:
parent
307632a7df
commit
389b86d24c
21
.drone.yml
21
.drone.yml
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user