This commit is contained in:
Christoph Honal 2020-02-14 00:12:38 +01:00
parent adec90c0b5
commit bb44468fb0

View File

@ -10,20 +10,20 @@ global-variables:
from_secret: prop_dir_sdr from_secret: prop_dir_sdr
PROP_DIR_DECODER: PROP_DIR_DECODER:
from_secret: prop_dir_decoder from_secret: prop_dir_decoder
default_settings: &default_settings default_commands: &default_commands
build_args_from_env: - docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
- PROP_SERVER - docker buildx create --use --name crosscomp
- PROP_DIR_SDR - docker buildx inspect --bootstrap
- PROP_DIR_DECODER - docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 --output=type=image,push=true --progress tty \
- PROP_SERVER_USER --build-arg UI_MODE --build-arg PROP_SERVER --build-arg PROP_SERVER_USER \
- PROP_SERVER_KEY --build-arg PROP_SERVER_KEY --build-arg PROP_DIR_SDR --build-arg PROP_DIR_DECODER \
- UI_MODE -t registry.chrz.de:443:move2docker:$UI_MODE-multi .
username:
from_secret: docker_username
password: volumes:
from_secret: docker_password - name: docker_socket
repo: registry.chrz.de:443/move2docker host:
registry: registry.chrz.de:443 path: /var/run/docker.sock
kind: pipeline kind: pipeline
@ -31,30 +31,29 @@ name: default
steps: steps:
- name: build-cli - name: build-cli
image: plugins/docker image: alexviscreanu/buildx
depends_on: [ clone ] volumes:
- name: docker_socket
path: /var/run/docker.sock
commands:
<<: *default_commands
environment: environment:
<<: *default_environment <<: *default_environment
UI_MODE: cli UI_MODE: cli
settings:
<<: *default_settings
tags:
- 'cli-x86_64'
- name: build-gui - name: build-gui
image: plugins/docker image: alexviscreanu/buildx
depends_on: [ clone ] volumes:
- name: docker_socket
path: /var/run/docker.sock
commands:
<<: *default_commands
environment: environment:
<<: *default_environment <<: *default_environment
UI_MODE: gui UI_MODE: gui
settings:
<<: *default_settings
tags:
- 'gui-x86_64'
- name: notify - name: notify
image: drillster/drone-email image: drillster/drone-email
depends_on: [ build-cli, build-gui ]
settings: settings:
host: smtp host: smtp
port: 25 port: 25