kind: pipeline type: kubernetes name: build platform: os: linux arch: amd64 dns_config: options: - name: ndots value: "1" steps: - name: check & build image: code.raybernat.com/tools/drone-rust-plugin:latest pull: always commands: - cargo build --release --target x86_64-unknown-linux-musl - cargo clippy # Linter checks - cargo fmt --check # Code formatting - dhall-to-toml --file deny.dhall --output deny.toml # Merge your deny.dhall with the common one and produce the deny.toml - cargo deny check # Check vulnerabilities and licences for (transitives dependencies). - name: docker build & push image: plugins/docker environment: PLUGIN_MTU: 1300 settings: dockerfile: Dockerfile username: drone password: from_secret: kaniko_registry_password 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