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-10 00:46:19 +00:00
|
|
|
image: rust:1.62
|
2022-08-10 00:09:50 +00:00
|
|
|
volumes:
|
|
|
|
- name: dockersock
|
|
|
|
path: /var/run
|
|
|
|
commands:
|
2022-08-10 00:52:51 +00:00
|
|
|
- cargo check
|
2022-08-10 22:31:36 +00:00
|
|
|
- echo 'echo $DOCKER_REGISTRY > reg' > do.sh && sh ./do.sh
|
2022-08-10 22:24:41 +00:00
|
|
|
- echo ${CARGO_HOME}
|
2022-08-10 22:31:36 +00:00
|
|
|
- ls -lah && rev reg
|
2022-08-10 22:17:37 +00:00
|
|
|
- set
|
2022-08-10 22:12:55 +00:00
|
|
|
# - apt-get update && apt-get install -y ca-certificates curl gnupg lsb-release
|
|
|
|
# - mkdir -p /etc/apt/keyrings && curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
|
|
|
# - echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" >> /etc/apt/sources.list.d/docker.list
|
|
|
|
# - apt-get update && apt-get install -y docker-ce-cli
|
|
|
|
# - docker info
|
|
|
|
# - cargo install cross --git https://github.com/cross-rs/cross
|
|
|
|
# - 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
|
2022-08-10 22:12:55 +00:00
|
|
|
DOCKER_REGISTRY:
|
|
|
|
from_secret: docker-registry-url
|
2022-08-10 22:17:37 +00:00
|
|
|
DOCKER_REGISTRY_2:
|
|
|
|
from_secret: i_do_not_exist
|
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
|
|
|
|
path: /var/run
|
2022-08-10 00:09:50 +00:00
|
|
|
|
2022-08-10 08:58:08 +00:00
|
|
|
volumes:
|
|
|
|
- name: dockersock
|
|
|
|
temp: {}
|