Contributing guidelines
I've found a bug, and:
Description
I have GH action where I update the .npmrc file to include authentication, this file is existing prior to me updating it and it contains placeholder info.
Example:
original . npmrc
updated . npmrc in step prior to build
When I run build with . as a context, and use COPY . . the contents of the .npmrc within a build is original file as opposed to updated one.
Since I have used @master Ive tried with @v6.3.0 and @v5.13.0, it fails on 6 and passes with 5 version.
Expected behaviour
.npmrc contents are:
Actual behaviour
.npmrc contents are:
Repository URL
No response
Workflow run URL
No response
YAML workflow
...
- name: Update npmrc
run: echo '//npm.pkg.github.com:_authToken=${{ secrets.GHRC_REPO_TOKEN }}' > .npmrc
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GHRC_REPO_TOKEN }}
- name: Build and push
env:
IMAGE: ${{ env.IMAGE_NAME }}
REPO: ${{ github.repository }}
TAG: ${{ needs.opts.outputs.tag }}
META_TAG: ${{ needs.opts.outputs.metaTag }}
uses: docker/[email protected]
with:
targets: default
push: false
...
Workflow logs
No response
BuildKit logs
Additional info
FROM node:18.20.4-alpine As builder
WORKDIR /app
COPY . .
# added to debug the issue
RUN cat .npmrc
RUN npm ci
RUN npm run build
RUN rm .npmrc
EXPOSE 3000
CMD [ "npm", "start" ]
Contributing guidelines
I've found a bug, and:
Description
I have GH action where I update the
.npmrcfile to include authentication, this file is existing prior to me updating it and it contains placeholder info.Example:
original
. npmrcupdated
. npmrcin step prior to buildWhen I run build with
.as a context, and useCOPY . .the contents of the.npmrcwithin a build is original file as opposed to updated one.Since I have used
@masterIve tried with@v6.3.0and@v5.13.0, it fails on6and passes with5version.Expected behaviour
.npmrccontents are:Actual behaviour
.npmrccontents are:Repository URL
No response
Workflow run URL
No response
YAML workflow
... - name: Update npmrc run: echo '//npm.pkg.github.com:_authToken=${{ secrets.GHRC_REPO_TOKEN }}' > .npmrc - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - name: Login to GitHub Container Registry uses: docker/login-action@v2 with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GHRC_REPO_TOKEN }} - name: Build and push env: IMAGE: ${{ env.IMAGE_NAME }} REPO: ${{ github.repository }} TAG: ${{ needs.opts.outputs.tag }} META_TAG: ${{ needs.opts.outputs.metaTag }} uses: docker/[email protected] with: targets: default push: false ...Workflow logs
No response
BuildKit logs
Additional info