31 lines
681 B
YAML
31 lines
681 B
YAML
|
kind: pipeline
|
||
|
name: default
|
||
|
|
||
|
steps:
|
||
|
- name: generate
|
||
|
image: knovus/drone-openfaas
|
||
|
settings:
|
||
|
template: python3-http
|
||
|
|
||
|
- name: build
|
||
|
image: plugins/docker
|
||
|
settings:
|
||
|
username:
|
||
|
from_secret: docker_registry_user
|
||
|
password:
|
||
|
from_secret: docker_registry_pass
|
||
|
registry: registry.serguzim.me
|
||
|
repo: registry.serguzim.me/faas/${DRONE_REPO_NAME}
|
||
|
context: ./build/${DRONE_REPO_NAME}/
|
||
|
dockerfile: ./build/${DRONE_REPO_NAME}/Dockerfile
|
||
|
tags: latest
|
||
|
|
||
|
- name: deploy
|
||
|
image: knovus/drone-openfaas
|
||
|
settings:
|
||
|
deploy: true
|
||
|
url: https://faas.serguzim.me
|
||
|
password:
|
||
|
from_secret: openfaas_password
|
||
|
registry: registry.serguzim.me
|