Try building with custom registry and image
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
da0541c85b
commit
0dcbf2c1b1
25
.drone.yml
25
.drone.yml
@ -7,7 +7,7 @@ platfomr:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: rust:1.62
|
image: img.kie.rs/jjkiers/rust:1.62-slim
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
path: /var/run
|
path: /var/run
|
||||||
@ -18,18 +18,17 @@ steps:
|
|||||||
- 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
|
- 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
|
- apt-get update && apt-get install -y docker-ce-cli
|
||||||
- docker info
|
- 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
|
||||||
# - cargo install cross --git https://github.com/cross-rs/cross
|
- cross build --release --target aarch64-unknown-linux-gnu
|
||||||
# - cross build --release --target aarch64-unknown-linux-gnu
|
- ls -lahR target/
|
||||||
# - ls -lahR target/
|
|
||||||
environment:
|
environment:
|
||||||
CROSS_REMOTE: true
|
CROSS_REMOTE: true
|
||||||
DOCKER_REGISTRY:
|
# DOCKER_REGISTRY:
|
||||||
from_secret: docker-registry-url
|
# from_secret: docker-registry-url
|
||||||
DOCKER_USERNAME:
|
# DOCKER_USERNAME:
|
||||||
from_secret: docker-registry-username
|
# from_secret: docker-registry-username
|
||||||
DOCKER_PASSWORD:
|
# DOCKER_PASSWORD:
|
||||||
from_secret: docker-registry-password
|
# from_secret: docker-registry-password
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- name: docker
|
- name: docker
|
||||||
@ -42,3 +41,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
temp: {}
|
temp: {}
|
||||||
|
|
||||||
|
|
||||||
|
image_pull_secrets:
|
||||||
|
- dockerconfigjson
|
||||||
|
Loading…
Reference in New Issue
Block a user