theohbrothers / Generate-DockerImageVariants

Easily generate a repository populated with Docker image variants. 🐳
MIT License
2 stars 1 forks source link

Fix: Remove creation of `.gitlab-ci.yml.ps1` on `-Init` #76

Closed leojonathanoh closed 1 year ago

leojonathanoh commented 1 year ago

The initial workaround #67 would actually not work, because Publish-Module -WhatIf shows that samples/generate/templates/.gitlab-ci.yml.ps1 (a .ps1 dotfile) cannot be included in the final module package among theFileList of the module manifest:

Publish the module
Checking module version
Publishing the module
Test-ModuleManifest: The specified FileList entry './samples/generate/templates/.gitlab-ci.yml.ps1' in the module manifest '/tmp/685007808/Generate-DockerImageVariants/Generate-DockerImageVariants.psd1' is invalid. Try again after updating this entry with valid values.

The .gitlab.ci.yml.ps1 file is now removed.

A CI job is added to do Publish-Module dry runs on non-tags.