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.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -15,7 +15,8 @@ steps:
|
|||||||
environment:
|
environment:
|
||||||
UBUNTU_VER: 22.04
|
UBUNTU_VER: 22.04
|
||||||
settings: &settings
|
settings: &settings
|
||||||
registry: gitea.ahkhan.me
|
registry:
|
||||||
|
from_secret: package-repo
|
||||||
username:
|
username:
|
||||||
from_secret: gitea-username
|
from_secret: gitea-username
|
||||||
password:
|
password:
|
||||||
@@ -25,7 +26,7 @@ steps:
|
|||||||
- ${DRONE_REPO_LINK:8}:22.04
|
- ${DRONE_REPO_LINK:8}:22.04
|
||||||
- ${DRONE_REPO_LINK:8}:latest
|
- ${DRONE_REPO_LINK:8}:latest
|
||||||
build_args_from_env:
|
build_args_from_env:
|
||||||
- UBUNTU_VER
|
UBUNTU_VER
|
||||||
platforms:
|
platforms:
|
||||||
- linux/amd64
|
- linux/amd64
|
||||||
- linux/arm64
|
- linux/arm64
|
||||||
|
|||||||
Reference in New Issue
Block a user