Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cloudbuild] support for steps[*].dir #65

Open
bradrydzewski opened this issue Mar 29, 2023 · 0 comments
Open

[cloudbuild] support for steps[*].dir #65

bradrydzewski opened this issue Mar 29, 2023 · 0 comments
Labels
cloudbuild Google Cloud Build conversion target gap Harness product gap

Comments

@bradrydzewski
Copy link
Member

https://cloud.google.com/build/docs/build-config-file-schema#dir

Use the dir field in a build step to set a working directory to use when running the step's container. If you set the dir field in the build step, the working directory is set to /workspace/

. If this value is a relative path, it is relative to the build's working directory. If this value is absolute, it may be outside the build's working directory, in which case the contents of the path may not be persisted across build step executions (unless a volume for that path is specified).

steps:
- name: 'gcr.io/cloud-builders/go'
 args: ['install', '.']
 env: ['PROJECT_ROOT=hello']
 dir: 'examples/hello_world'
@bradrydzewski bradrydzewski added gap Harness product gap cloudbuild Google Cloud Build conversion target labels Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cloudbuild Google Cloud Build conversion target gap Harness product gap
Projects
None yet
Development

No branches or pull requests

1 participant