Replies: 4 comments
-
hmm I'm thinking if we should just drop this syntax and use |
Beta Was this translation helpful? Give feedback.
-
Yeah, env definition with from_secret is much easier to use and remember |
Beta Was this translation helpful? Give feedback.
-
I get the following error when I try to use
pipeline:
deploy-to-staging:
image: ${ORG_REGISTRY}/drone_plugins/docker_stack
pull: true
settings:
name: staging_mailer
secrets:
- secret_key
- postgres_password
- postgres_user
- postgres_database
- minio_access_key
- minio_secret_key
- source: staging_smtp_hostname
target: smtp_hostname
- source: staging_smtp_username
target: smtp_username
- source: staging_smtp_password
target: smtp_password
- app_user_admin
- mail_sender_email
- mail_sender_name
- tinkoff_merchant_terminal_key
- tinkoff_merchant_secret_key
environment:
API_IMAGE: ${ORG_REGISTRY}/${CI_REPO}:${CI_COMMIT_SHA:0:8}
when:
- event: [push, manual]
branch: master What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
-
it looks like we have to use a source and a target for each secret! pipeline:
deploy-to-staging:
image: ${ORG_REGISTRY}/drone_plugins/docker_stack
pull: true
settings:
name: staging_mailer
secrets:
- source: secret_key
target: secret_key
- source: postgres_password
target: postgres_password
- source: postgres_user
target: postgres_user
- source: sourcepostgres_database
target: sourcepostgres_database
- source: minio_access_key
target: minio_access_key
- source: minio_secret_key
target: minio_secret_key
- source: staging_smtp_hostname
target: smtp_hostname
- source: staging_smtp_username
target: smtp_username
- source: staging_smtp_password
target: smtp_password
- source: app_user_admin
target: app_user_admin
- source: mail_sender_email
target: mail_sender_email
- source: mail_sender_name
target: mail_sender_name
- source: tinkoff_merchant_terminal_key
target: tinkoff_merchant_terminal_key
- source: tinkoff_merchant_secret_key
target: tinkoff_merchant_secret_key
environment:
API_IMAGE: ${ORG_REGISTRY}/${CI_REPO}:${CI_COMMIT_SHA:0:8}
when:
- event: [push, manual]
branch: master
Now it works without an error. |
Beta Was this translation helpful? Give feedback.
-
Component
other
Describe the bug
I think the description for Secrets - Alternative Names is a bit unclear of HOW exactly secrets are included in the pipeline.
It seems not logical to me that this:
Becomes
$DOCKER_PASSWORD
as variables can also be lower case in shell.System Info
Additional context
No response
Validations
Beta Was this translation helpful? Give feedback.
All reactions