Christoph Honal
cd423a7d3a
Some checks reported errors
continuous-integration/drone/push Build was killed
51 lines
1.7 KiB
YAML
51 lines
1.7 KiB
YAML
volumes:
|
|
- name: docker_socket
|
|
host:
|
|
path: /var/run/docker.sock
|
|
|
|
|
|
kind: pipeline
|
|
name: default
|
|
|
|
steps:
|
|
- name: build
|
|
image: alexviscreanu/buildx
|
|
volumes:
|
|
- name: docker_socket
|
|
path: /var/run/docker.sock
|
|
commands:
|
|
- docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
|
|
- docker buildx create --use --name crosscomp
|
|
- docker buildx inspect --bootstrap
|
|
- docker login --username $DOCKER_USERNAME --password $DOCKER_PASSWORD registry.chrz.de
|
|
- docker buildx build --platform linux/amd64,linux/arm/v7 --output=type=image,push=true --progress tty
|
|
--build-arg PROP_SERVER --build-arg PROP_SERVER_USER
|
|
--build-arg PROP_SERVER_KEY --build-arg PROP_DIR_SDR --build-arg PROP_DIR_DECODER
|
|
--cache-to=type=registry,ref=registry.chrz.de/redsat/move2docker,mode=max
|
|
--cache-from=type=registry,ref=registry.chrz.de/redsat/move2docker
|
|
-t registry.chrz.de/redsat/move2docker .
|
|
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
|
|
DOCKER_USERNAME:
|
|
from_secret: docker_username
|
|
DOCKER_PASSWORD:
|
|
from_secret: docker_password
|
|
|
|
- name: notify
|
|
image: drillster/drone-email
|
|
settings:
|
|
host: smtp
|
|
port: 25
|
|
skip_verify: true
|
|
from: drone@chrz.de
|
|
when:
|
|
status: [ success, failure ] |