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:
|
||||
- name: test
|
||||
image: rust:1.62
|
||||
image: img.kie.rs/jjkiers/rust:1.62-slim
|
||||
volumes:
|
||||
- name: dockersock
|
||||
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
|
||||
- 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/
|
||||
- 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
|
||||
# DOCKER_REGISTRY:
|
||||
# from_secret: docker-registry-url
|
||||
# DOCKER_USERNAME:
|
||||
# from_secret: docker-registry-username
|
||||
# DOCKER_PASSWORD:
|
||||
# from_secret: docker-registry-password
|
||||
|
||||
services:
|
||||
- name: docker
|
||||
@ -42,3 +41,7 @@ services:
|
||||
volumes:
|
||||
- name: dockersock
|
||||
temp: {}
|
||||
|
||||
|
||||
image_pull_secrets:
|
||||
- dockerconfigjson
|
||||
|
Loading…
Reference in New Issue
Block a user