Skip to content
This repository was archived by the owner on Oct 11, 2023. It is now read-only.
This repository was archived by the owner on Oct 11, 2023. It is now read-only.

Including a gitignored file not working #138

@robertjf

Description

@robertjf

I have an azds that contains the following snippet:

build:
  useGitIgnore: true
  ignore:
  - "!nuget.develop.config"

however the ignored (in .gitignore) file is still not being copied into the docker image to be used while building. I've tried several versions including the following as indicated in this documentation (which looks wrong by the way):

build:
useGitIgnore: true
ignore:
- "!nuget.develop.config"

I've tried several things with the file listed in the .gitignore including:

COPY ["src/Services/Versioning/Versioning.API/nuget.develop.config", "Services/Versioning/Versioning.API/"]

which fails with

COPY failed: stat /var/lib/docker/tmp/docker-builder057519705/src/Services/Versioning/Versioning.API/nuget.develop.config: no such file or directory

Once I comment out the entry in .gitignore though everything starts working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions