EnvronmentManagement/.drone.yml

50 lines
1.0 KiB
YAML
Raw Permalink Normal View History

2021-10-02 02:24:33 +01:00
kind: pipeline
type: docker
name: deploy
steps:
2021-10-02 02:34:56 +01:00
# GO api
2021-10-02 02:24:33 +01:00
- name: build_api
image: golang
environment:
2021-10-02 02:44:55 +01:00
GIN_MODE: release
2021-10-02 02:24:33 +01:00
commands:
- cd Api
- go build
2021-10-02 02:34:56 +01:00
# Platformio esp firmware
# - name: build_esp
# C# frontend
# upload docker
2021-10-02 02:24:33 +01:00
- name: upload_frontend
2021-10-02 02:34:56 +01:00
image: plugins/docker
2021-10-02 02:24:33 +01:00
when:
branch:
2021-10-02 02:34:56 +01:00
- master
2021-10-02 02:24:33 +01:00
settings:
dockerfile: ManagementPage/ManagementPage/Dockerfile
2021-10-02 02:34:56 +01:00
repo: "registry.jacknet.io/51m0n/environment-api"
2021-10-02 02:24:33 +01:00
username: simon
password:
from_secret: docker_password
registry: registry.jacknet.io
auto_tag: true
2021-10-02 02:34:56 +01:00
# upload docker
2021-10-02 02:24:33 +01:00
- name: upload_api
depends_on:
- build_api
image: plugins/docker
when:
branch:
2021-10-02 02:34:56 +01:00
- master
2021-10-02 02:24:33 +01:00
settings:
context: Api
dockerfile: Api/Dockerfile
2021-10-02 02:34:56 +01:00
repo: "registry.jacknet.io/51m0n/environment-api"
2021-10-02 02:24:33 +01:00
username: simon
password:
from_secret: docker_password
registry: registry.jacknet.io
auto_tag: true
# upload firmware blob
2021-10-02 02:34:56 +01:00
# - name: upload_esp