You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure its actual bug or relevant issue, but still. Maybe some I'll get hints...
Here is my test code:
const isCI = require('is-ci')
if (isCI) {
console.log('A - The code is running on a CI server')
} else {
console.log('A - NOT a CI server')
}
const ci = require('ci-info')
if (ci.isCI) {
console.log('B - The name of the CI server is:', ci.name)
} else {
console.log('B - This program is not running on a CI server')
}
So neither ci-info directly nor is-ci
And my Dockerfile has such lines:
FROM node:16.18.1
...
COPY --chown=node:node package.json package-lock.json /tbd/
RUN npm ci --include=dev --no-fund --quiet
RUN npm run build
...
USER node
EXPOSE 4000
ENTRYPOINT ["./docker/project/docker-entrypoint.sh"]
Meaning actual NPM install is being done OUT of Git repo.
Additional context
Add any other context about the problem here.
I assume, because OF Docker container/image scope it's NOT CI per se anymore. But this all stuff is executed on CI and that is strange to grasp.
I realize, that I have to pass UPPER level of env BEFORE Docker container/image. But I 1) not yet sure how to it properly, 2) not sure if it worth doing (I just want to disable HUSKY from CI), 3) not sure if this isn't ONLY my problem. Maybe other people do it better.
Task : Docker
Description : Build or push Docker images, login or logout, start or stop containers, or run a Docker command
Version : 2.214.0
Author : Microsoft Corporation
Help : https://aka.ms/azpipes-docker-tsg
Maybe there is some flag for Azure Docker task to traverse information about CI. I don't know yet.
The text was updated successfully, but these errors were encountered:
Not sure its actual bug or relevant issue, but still. Maybe some I'll get hints...
Here is my test code:
So neither
ci-info
directly noris-ci
And my
Dockerfile
has such lines:Meaning actual NPM install is being done OUT of Git repo.
Other Details:
Environment variables
Environment variables example
result of execution commend
env
:Additional context
Add any other context about the problem here.
I assume, because OF Docker container/image scope it's NOT CI per se anymore. But this all stuff is executed on CI and that is strange to grasp.
I realize, that I have to pass UPPER level of
env
BEFORE Docker container/image. But I 1) not yet sure how to it properly, 2) not sure if it worth doing (I just want to disable HUSKY from CI), 3) not sure if this isn't ONLY my problem. Maybe other people do it better.Maybe there is some flag for Azure
Docker
task to traverse information about CI. I don't know yet.The text was updated successfully, but these errors were encountered: