solana_scanner/.drone.yml

56 lines
1.0 KiB
YAML
Raw Normal View History

kind: pipeline
type: kubernetes
name: build
platform:
os: linux
arch: amd64
dns_config:
options:
- name: ndots
value: "1"
steps:
- name: prepare docker config
image: alpine
volumes:
- name: docker-config
path: /root/.docker
commands:
- cp /run/secrets/docker_config /root/.docker/config.json
- name: check & build
image: code.raybernat.com/tooling/drone-rust-plugin:latest
pull: always
commands:
- cargo build
- name: docker build & push
image: plugins/docker
volumes:
- name: docker-config
path: /root/.docker
environment:
PLUGIN_MTU: 1300
privileged: true
settings:
dockerfile: Dockerfile
repo: code.raybernat.com/alex/solana_scanner
registry: code.raybernat.com
tags:
- latest
- ${DRONE_COMMIT_SHA}
depends_on:
- "check & build"
when:
event:
- push
trigger:
event:
- pull_request
- push
branch:
- main
volumes:
- name: docker-config
temp: {}