From c20fc7cd900b8db2a98cc4376939022a266b06af Mon Sep 17 00:00:00 2001 From: Ameer Hamza Date: Thu, 20 Apr 2023 05:37:01 +0800 Subject: [PATCH] Added registry name as secret to make the config more flexible. Reason: added as secret because currently drone config doesn't expand env variables inside config file. Advantage: Each version of drone can decide which repo to use for pulling and pushing. --- .drone.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index b25e1d4..be30ea2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,7 +15,8 @@ steps: environment: UBUNTU_VER: 22.04 settings: &settings - registry: gitea.ahkhan.me + registry: + from_secret: package-repo username: from_secret: gitea-username password: @@ -25,7 +26,7 @@ steps: - ${DRONE_REPO_LINK:8}:22.04 - ${DRONE_REPO_LINK:8}:latest build_args_from_env: - - UBUNTU_VER + UBUNTU_VER platforms: - linux/amd64 - linux/arm64