Skip to content

Commit b9683fa

Browse files
committed
fixed warnings
1 parent 5b94710 commit b9683fa

3 files changed

Lines changed: 19 additions & 4 deletions

File tree

deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ config:
1414
TEST_ENV_SECRET: "gcp/rabbit-ci-dev/worker-secret-test"
1515

1616
# Mount volumes
17-
# volumes:
18-
# - "./src/scripts:/var/www"
17+
volumes:
18+
- "./worker.yaml:/home/udx/.config/worker/worker.yaml"
1919

2020
# ports:
2121
# - "80:80"
@@ -24,4 +24,4 @@ config:
2424
# command: "/usr/local/bin/init.sh"
2525

2626
service_account:
27-
email: "worker-site@rabbit-ci-dev.iam.gserviceaccount.com"
27+
email: "worker-site@rabbit-ci-dev.iam.gserviceaccount.com"

lib/secrets.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,14 @@ fetch_secrets_from_env_vars() {
191191
# 2. Process deployment environment variables (from container environment)
192192
while IFS='=' read -r key value; do
193193
# Skip if already processed from worker config
194-
if [[ " ${processed_vars[*]} " =~ " ${key} " ]]; then
194+
local already_processed=false
195+
for processed_var in "${processed_vars[@]}"; do
196+
if [[ "$key" == "$processed_var" ]]; then
197+
already_processed=true
198+
break
199+
fi
200+
done
201+
if [[ "$already_processed" == "true" ]]; then
195202
continue
196203
fi
197204

worker.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
kind: workerConfig
3+
version: udx.io/worker-v1/config
4+
config:
5+
env:
6+
CREATED: "2025-02-21T07:57:59Z"
7+
secrets:
8+
TEST_ENV: "gcp/rabbit-ci-dev/worker-secret-test"

0 commit comments

Comments
 (0)