move2docker/.drone.yml

49 lines
1.6 KiB
YAML
Raw Normal View History

2020-02-13 23:12:38 +00:00
volumes:
- name: docker_socket
host:
path: /var/run/docker.sock
2020-02-13 10:35:54 +00:00
kind: pipeline
name: default
steps:
2020-02-14 00:55:31 +00:00
- name: build
2020-02-13 23:12:38 +00:00
image: alexviscreanu/buildx
volumes:
- name: docker_socket
path: /var/run/docker.sock
commands:
2020-02-14 00:55:31 +00:00
- docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
- docker buildx create --use --name crosscomp
- docker buildx inspect --bootstrap
2020-02-14 05:06:06 +00:00
- docker login --username $DOCKER_USERNAME --password DOCKER_PASSWORD registry.chrz.de:443
2020-02-14 00:55:31 +00:00
- docker buildx build --platform linux/amd64,linux/arm64,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
2020-02-14 05:06:06 +00:00
-t registry.chrz.de:443/redsat/move2docker .
2020-02-13 07:42:21 +00:00
environment:
2020-02-14 00:55:31 +00:00
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
2020-02-14 05:06:06 +00:00
DOCKER_USERNAME:
from_secret: docker_username
DOCKER_PASSWORD:
from_secret: docker_password
2020-02-13 10:35:54 +00:00
- name: notify
image: drillster/drone-email
settings:
host: smtp
port: 25
skip_verify: true
from: drone@chrz.de
when:
status: [ success, failure ]