drone-test/.drone.yml

43 lines
782 B
YAML
Raw Normal View History

2022-08-10 00:09:50 +00:00
---
kind: pipeline
name: default
2022-08-10 00:18:24 +00:00
platfomr:
arch: amd64
2022-08-10 00:09:50 +00:00
steps:
- name: test
2022-08-11 20:21:25 +00:00
image: img.kie.rs/jjkiers/rust-dind-cross:1.62-slim
2022-08-10 00:09:50 +00:00
volumes:
- name: dockersock
2022-08-11 20:49:15 +00:00
path: /var/run
2022-08-10 00:09:50 +00:00
commands:
2022-08-10 00:52:51 +00:00
- cargo check
2022-08-11 20:32:24 +00:00
- while ! docker image ls; do sleep 1; done
- cross build --release --target aarch64-unknown-linux-gnu
- ls -lahR target/
2022-08-10 21:15:11 +00:00
environment:
2022-08-10 21:15:56 +00:00
CROSS_REMOTE: true
# DOCKER_REGISTRY:
# from_secret: docker-registry-url
# DOCKER_USERNAME:
# from_secret: docker-registry-username
# DOCKER_PASSWORD:
# from_secret: docker-registry-password
2022-08-10 00:09:50 +00:00
2022-08-10 08:58:08 +00:00
services:
- name: docker
image: docker:dind
privileged: true
volumes:
- name: dockersock
2022-08-11 20:49:15 +00:00
path: /var/run
2022-08-10 00:09:50 +00:00
2022-08-10 08:58:08 +00:00
volumes:
- name: dockersock
temp: {}
image_pull_secrets:
2022-08-11 16:55:03 +00:00
- docker_private_repo