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

Search yaml target file into multiple location #73

Merged
merged 3 commits into from
Jul 17, 2020
Merged

Search yaml target file into multiple location #73

merged 3 commits into from
Jul 17, 2020

Conversation

olblak
Copy link
Member

@olblak olblak commented Jul 17, 2020

This pr now looks YAML file into multiple locations

if a directory is not defined in the yaml configuration then it checks if the specified file exists on the disk based on the path otherwise search locally from where we run the command

I used the command updatecli diff --config config.yaml on the following config.yaml file to validate

.config.yaml

source:
  kind: dockerDigest
  spec:
    image: "olblak/polls"
    tag: "latest"
targets:
  imageTag:
    name: "updatecli docker image tag"
    kind: "yaml"
    prefix: "olblak/polls@256:"
    spec:
      #path: "/tt"
      #file: "/home/olblak/Project/Jenkins-infra/polls/docker-compose.yaml"
      file: "../../Jenkins-infra/polls/docker-compose.yamli"
      #file: "docker-compose.yamli"
      key: "services.api.image"

@olblak olblak added the enhancement New feature or request label Jul 17, 2020
Signed-off-by: Olivier Vernin <olivier@vernin.me>
@olblak olblak merged commit e778307 into master Jul 17, 2020
@olblak olblak deleted the yamlPath branch July 17, 2020 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant