--- kind: pipeline name: default platfomr: arch: amd64 steps: - name: test image: rust:1.62 volumes: - name: dockersock path: /var/run commands: - cargo check - 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 - echo 'echo $DOCKER_PASSWORD | docker login --username $DOCKER_USERNAME --password-stdin $DOCKER_REGISTRY' > login.sh && sh ./login.sh # - cargo install cross --git https://github.com/cross-rs/cross # - cross build --release --target aarch64-unknown-linux-gnu # - ls -lahR target/ environment: CROSS_REMOTE: true DOCKER_REGISTRY: from_secret: docker-registry-url DOCKER_USERNAME: from_secret: docker-registry-username DOCKER_PASSWORD: from_secret: docker-registry-password services: - name: docker image: docker:dind privileged: true volumes: - name: dockersock path: /var/run volumes: - name: dockersock temp: {}