This commit is contained in:
53
.drone-base-image.yml
Normal file
53
.drone-base-image.yml
Normal file
@@ -0,0 +1,53 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: Build Hexo-Images
|
||||
|
||||
trigger:
|
||||
event:
|
||||
include:
|
||||
- custom
|
||||
|
||||
steps:
|
||||
- name: Build Hexo-Images
|
||||
image: plugins/docker
|
||||
pull: if-not-exists
|
||||
settings:
|
||||
registry:
|
||||
from_secret: REGISTRY
|
||||
username:
|
||||
from_secret: DOCKER_USERNAME
|
||||
password:
|
||||
from_secret: DOCKER_PASSWORD
|
||||
repo:
|
||||
from_secret: REPO
|
||||
dry_run: false
|
||||
tags:
|
||||
- hexo
|
||||
context: ./
|
||||
dockerfile: ./Dockerfile-hexo
|
||||
build_args:
|
||||
# - IMAGENAME=node:alpine
|
||||
- IMAGENAME=registry.cn-hangzhou.aliyuncs.com/offends/hexo:node-alpine
|
||||
- name: Build Hexo-Async-Images
|
||||
image: plugins/docker
|
||||
pull: if-not-exists
|
||||
settings:
|
||||
registry:
|
||||
from_secret: REGISTRY
|
||||
username:
|
||||
from_secret: DOCKER_USERNAME
|
||||
password:
|
||||
from_secret: DOCKER_PASSWORD
|
||||
repo:
|
||||
from_secret: REPO
|
||||
dry_run: false
|
||||
tags:
|
||||
- hexo-async
|
||||
context: ./
|
||||
dockerfile: ./Dockerfile-hexo-async
|
||||
build_args:
|
||||
- IMAGENAME=registry.cn-hangzhou.aliyuncs.com/offends/hexo:hexo
|
||||
volumes:
|
||||
- name: dockersock
|
||||
host:
|
||||
path: /var/run/docker.sock
|
Reference in New Issue
Block a user