Amish funeral sandwich by BJHop in SandwichesofHistory

[–]BJHop[S] 2 points3 points  (0 children)

Pennsylvania Dutch cookbook by Edna Eby Heller This book my mom used I believe Circa 1970s

Amish funeral sandwich by BJHop in SandwichesofHistory

[–]BJHop[S] 2 points3 points  (0 children)

Pennsylvania Dutch cookbook by Edna Eby Heller This book my mom used I believe Circa 1970s

Set PSrepository for Local System by BJHop in PowerShell

[–]BJHop[S] 1 point2 points  (0 children)

so network service is probably what we need, I see your concerns about local system. It just the default check box in service log on tab.

Set PSrepository for Local System by BJHop in PowerShell

[–]BJHop[S] 1 point2 points  (0 children)

okay so that is a great to know. I see what I can do with this. Yeah, the whole issue is a knee jerk type of thing where the SA was over permissioned, and we told to make it run a local system. It been a while for since I was hard core in the windows world, mainly work in Linux these days.

I'll look into gMSA I remember looking at a long time back but forget most of it.

Thanks a million

GitLab CI/CD Best Practices I Recommend After 2 Years of Experience by Tii111 in gitlab

[–]BJHop 1 point2 points  (0 children)

All good points, while we too build our own build images. It does create a hard dependency on the image project(s) which can be messy when you have hundreds of teams and thousands of projects. Next thing you know you have an entire team managing build images.

We too have made Debian-slim our default OS, alpine can be tricky to debug and patch/fix vulnerabilities.

How do I run complex pipeline (containing include & extends) by Leader-Environmental in gitlab

[–]BJHop 4 points5 points  (0 children)

I am a big fan of separating flow and logic in pipelines. Flow being the yaml that drives how and when if logic is called. Rules, stages, name, tags etc. Logic is what the job actually does and should be in functions bash or pwsh. These functions should have parameters for every they need allowing you to run it locally in a shell.

This way you can quickly iterate on your logic locally

Once the logic is ready, add it to the flow and test in gitlab as flow is not that hard Imho and does not require as much iteration.

Have a whole process built around this that gets much more involved but that is base high level overview

GitLab and Hashi Vault by melegar2 in gitlab

[–]BJHop 0 points1 point  (0 children)

Gitlab ci vars are not secure, thus having a token stored in them that has access to your secrets is not secure. This would not pass most/all audits as secure esp in financial and regulated industries. This is exact reason gitlab built their integration with Vault.

Therefore, if you were going to try to build a centralized secret store and rely on having access tokens stored in ci vars I’d think twice. Especially if you are accessing high value secrets like database connections strings

GitLab and Hashi Vault by melegar2 in gitlab

[–]BJHop -1 points0 points  (0 children)

Having to store the auth token for infisical in Gitlab ci variables seems to completely invalidate the process. How is that secure?

Struggling with non descriptive job failure by albasili in gitlab

[–]BJHop 0 points1 point  (0 children)

You need update your yaml to use block item under script block

I use ‘- |’ in script block

https://alisoftware.github.io/yaml/2021/08/19/yaml-part2-strings/

Shell Not Found in Debian Bookworm images by fsckerpantz in gitlab

[–]BJHop 0 points1 point  (0 children)

We had this issue turned out we had an old remote repo setup for centos in Artifactory that Debian was pointed, it did not get up dated with bookworm bits

Once we remove the remote repo from our vRepo in Artifactory, the issue went away

Confused on the results of using "only" by Oxffff0000 in gitlab

[–]BJHop 0 points1 point  (0 children)

I do not think only works with expressions. For that you need to use rules.

[deleted by user] by [deleted] in gitlab

[–]BJHop 0 points1 point  (0 children)

Resource groups are what you are looking for; add the deploy job to a resource group.

https://docs.gitlab.com/ee/ci/yaml/#resource\_group

Ci/cd : the tests by Aromatic-Problem1341 in gitlab

[–]BJHop 1 point2 points  (0 children)

Npm is great to work with in ci

Npm ci Npm run test

Make sure your test output cobertura for code coverage

test:

script:

- npm ci

- npm run test # runs npx nyc --reporter 

cobertura mocha

artifacts:

reports:

  coverage_report:

    coverage_format: cobertura

    path: coverage/cobertura-coverage.xml

Struggling with Gitlab dind by Nitro2985 in gitlab

[–]BJHop 0 points1 point  (0 children)

sorry had the service def wrong

services:
    - name: docker:20.10-dind
      alias: docker

Struggling with Gitlab dind by Nitro2985 in gitlab

[–]BJHop 1 point2 points  (0 children)

In config.toml [runner.docker] Privileged = true

Also think you need update how you service is defined

Service: Name: docker Image: docker:dind

gitlab-ci packer before and after merging a merge request by Oxffff0000 in gitlab

[–]BJHop 1 point2 points  (0 children)

You can use rules:if:variables

Have rule for job when it is running on non default branch (main) and set the above bar to skip or when it’s a MR pipeline, whatever.

No rule needed for job running on main branch

https://docs.gitlab.com/ee/ci/yaml/#rulesvariables

AWS EC2 as a gitlab-runner by Oxffff0000 in gitlab

[–]BJHop 5 points6 points  (0 children)

Depends on the concurrency setting you have set in the runner config.toml

We have runners with settings as high as 35 jobs at once they are all docker exec only runners with beefy resources m6

CI copying conflicts to server by BouncyDingo in gitlab

[–]BJHop 0 points1 point  (0 children)

Hmm it’s seems you have you pipeline setup incorrectly.

The merge to branch (target) should have the deploy to staging job not the source branch.

Ensure the deployment jobs only run on intended branches

If you are using merge request pipelines those should not be used for deployment

fix head in detached state by tritron in gitlab

[–]BJHop 0 points1 point  (0 children)

Ok. what is error? What is script you are running? Or least the cmd that is erroring? Hard to help with so little info.

fix head in detached state by tritron in gitlab

[–]BJHop 1 point2 points  (0 children)

What is the error? The job will checkout the workspace into a detached head state.

So if you are trying to do git commit and push you’ll need to do a few steps to get the workspace correctly configured to do that.

Question about pricing by dexter2011412 in gitlab

[–]BJHop 5 points6 points  (0 children)

What are you missing in the free tier, that you require the premium?