Test anchor

This commit is contained in:
Christoph Honal 2020-02-13 08:42:21 +01:00
parent 00d1895acd
commit b7114e200a

View File

@ -1,64 +1,63 @@
pipeline: anchors:
build-cli: - &anchor_env
image: plugins/docker PROP_SERVER_USER:
group: build from_secret: prop_server_user
environment: PROP_SERVER_KEY:
PROP_SERVER_USER: from_secret: prop_server_key
from_secret: prop_server_user PROP_SERVER:
PROP_SERVER_KEY: from_secret: prop_server
from_secret: prop_server_key PROP_DIR_SDR:
PROP_SERVER: from_secret: prop_dir_sdr
from_secret: prop_server PROP_DIR_DECODER:
PROP_DIR_SDR: from_secret: prop_dir_decoder
from_secret: prop_dir_sdr
PROP_DIR_DECODER:
from_secret: prop_dir_decoder
UI_MODE: cli
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
tags:
- 'cli-x86_64'
build-gui: ---
image: plugins/docker kind: pipeline
group: build name: build-cli
environment: steps:
PROP_SERVER_USER: - name: build
from_secret: prop_server_user image: plugins/docker
PROP_SERVER_KEY: environment:
from_secret: prop_server_key <<: *anchor_env
PROP_SERVER: UI_MODE: cli
from_secret: prop_server settings:
PROP_DIR_SDR: build_args_from_env:
from_secret: prop_dir_sdr - PROP_SERVER
PROP_DIR_DECODER: - PROP_DIR_SDR
from_secret: prop_dir_decoder - PROP_DIR_DECODER
UI_MODE: gui - PROP_SERVER_USER
settings: - PROP_SERVER_KEY
build_args_from_env: - UI_MODE
- PROP_SERVER username:
- PROP_DIR_SDR from_secret: docker_username
- PROP_DIR_DECODER password:
- PROP_SERVER_USER from_secret: docker_password
- PROP_SERVER_KEY repo: registry.chrz.de:443/move2docker
- UI_MODE registry: registry.chrz.de:443
username: tags:
from_secret: docker_username - 'cli-x86_64'
password: ---
from_secret: docker_password kind: pipeline
repo: registry.chrz.de:443/move2docker name: build-gui
registry: registry.chrz.de:443 steps:
tags: - name: build
- 'gui-x86_64' image: plugins/docker
environment:
<<: *anchor_env
UI_MODE: gui
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
tags:
- 'gui-x86_64'