Secrets test 11
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Jacob Kiers 2022-08-10 22:37:11 +00:00
parent f2a1245388
commit b756f12573

View File

@ -13,15 +13,16 @@ steps:
path: /var/run
commands:
- cargo check
- echo 'echo $DOCKER_REGISTRY > reg' > do.sh && sh ./do.sh
- echo "docker login --username \$DOCKER_USERNAME --password \$DOCKER_PASSWORD \$DOCKER_REGISTRY" > login.sh && sh ./login.sh
- echo ${CARGO_HOME}
- ls -lah && rev reg
- set
# - 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
- 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
- docker login $(cat rer)
# - cargo install cross --git https://github.com/cross-rs/cross
# - cross build --release --target aarch64-unknown-linux-gnu
# - ls -lahR target/
@ -29,8 +30,10 @@ steps:
CROSS_REMOTE: true
DOCKER_REGISTRY:
from_secret: docker-registry-url
DOCKER_REGISTRY_2:
from_secret: i_do_not_exist
DOCKER_USERNAME:
from_secret: docker-registry-username
DOCKER_PASSWORD:
from_secret: docker-registry-password
services:
- name: docker