Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

All notable changes to this project will be documented in this file.

## [3.0.4] - 2026-02-05

### Fixed

- Fix YAML key listing to output real newlines so env vars are passed correctly.
- Quote command display in deploy make target to avoid shell parse errors.
- Update default deploy config and docs to use `command` + `args`.

## [3.0.3] - 2026-02-05

### Changed
Expand Down
5 changes: 4 additions & 1 deletion deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ config:
image: "worker-nodejs:latest"
env:
NODE_ENV: "production"
command: "node -e \\\"console.log('hello_world')\\\""
command: "node"
args:
- "-e"
- "console.log('hello_world')"
10 changes: 8 additions & 2 deletions docs/deploy-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ config:
- "./:/workspace"
env:
DEBUG: "true"
command: "worker run my-task"
command: "worker"
args:
- "run"
- "my-task"
```

Using container default command:
Expand Down Expand Up @@ -44,5 +47,8 @@ config:
email: "worker-sa@my-project.iam.gserviceaccount.com"
volumes:
- "./:/workspace"
command: "worker deploy --env=staging"
command: "worker"
args:
- "deploy"
- "--env=staging"
```
2 changes: 1 addition & 1 deletion lib/yaml.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ if (cmd === "length") {

if (cmd === "keys") {
if (value && typeof value === "object" && !Array.isArray(value)) {
Object.keys(value).forEach((k) => process.stdout.write(`${k}\\n`));
Object.keys(value).forEach((k) => process.stdout.write(`${k}\n`));
}
process.exit(0);
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@udx/worker-deployment",
"version": "3.0.3",
"version": "3.0.4",
"description": "Docker container runner with YAML configuration and automatic GCP authentication (keys, Workload Identity, impersonation)",
"bin": {
"worker": "bin/worker"
Expand Down
4 changes: 2 additions & 2 deletions src/make/deploy.mk
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ run:
@echo $(CRED_INFO)
@echo "Image: $(WORKER_IMAGE)"
ifneq ($(COMMAND),)
@echo Command: $(COMMAND)
@printf '%s\n' 'Command: $(call squote,$(COMMAND))'
else
@echo "Command: <using container default>"
endif
Expand Down Expand Up @@ -101,7 +101,7 @@ run-it:
@echo $(CRED_INFO)
@echo "Image: $(WORKER_IMAGE)"
ifneq ($(COMMAND),)
@echo Command: $(COMMAND)
@printf '%s\n' 'Command: $(call squote,$(COMMAND))'
else
@echo "Command: <using container default>"
endif
Expand Down