66 lines
1.7 KiB
YAML
66 lines
1.7 KiB
YAML
global-variables:
|
|
default_environment: &default_environment
|
|
PROP_SERVER_USER:
|
|
from_secret: prop_server_user
|
|
PROP_SERVER_KEY:
|
|
from_secret: prop_server_key
|
|
PROP_SERVER:
|
|
from_secret: prop_server
|
|
PROP_DIR_SDR:
|
|
from_secret: prop_dir_sdr
|
|
PROP_DIR_DECODER:
|
|
from_secret: prop_dir_decoder
|
|
default_settings: &default_settings
|
|
build_args_from_env:
|
|
- PROP_SERVER
|
|
- PROP_DIR_SDR
|
|
- PROP_DIR_DECODER
|
|
- PROP_SERVER_USER
|
|
- PROP_SERVER_KEY
|
|
- UI_MODE
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
repo: registry.chrz.de:443/move2docker
|
|
registry: registry.chrz.de:443
|
|
|
|
|
|
kind: pipeline
|
|
name: default
|
|
|
|
steps:
|
|
- name: build-cli
|
|
image: plugins/docker
|
|
depends_on: [ clone ]
|
|
environment:
|
|
<<: *default_environment
|
|
UI_MODE: cli
|
|
settings:
|
|
<<: *default_settings
|
|
commands:
|
|
- export DOCKER_CLI_EXPERIMENTAL=enabled
|
|
- docker buildx ls
|
|
|
|
- name: build-gui
|
|
image: plugins/docker
|
|
depends_on: [ clone ]
|
|
environment:
|
|
<<: *default_environment
|
|
UI_MODE: gui
|
|
settings:
|
|
<<: *default_settings
|
|
commands:
|
|
- export DOCKER_CLI_EXPERIMENTAL=enabled
|
|
- docker buildx ls
|
|
|
|
- name: notify
|
|
image: drillster/drone-email
|
|
depends_on: [ build-cli, build-gui ]
|
|
settings:
|
|
host: smtp
|
|
port: 25
|
|
skip_verify: true
|
|
from: drone@chrz.de
|
|
when:
|
|
status: [ success, failure ] |