Skip to content

Container images are published immediately when creating a new repo from this template repo #52

@Scotchester

Description

@Scotchester

GitHub's template repo feature currently has no way to prevent new repos created from the template from including certain files.

As a result, as soon as a new repo is created from this template repo, the Publish devcontainer workflow runs immediately in the new repo, which is useless. See this example from the slackronyms repo I just created.

It's not obvious to me what the ideal solution is. I guess some kind of conditional in the publish-devcontainer.yml file that will only run it if the repo in question is compilerla/template-devcontainer? Or another option would be to make it only run when manually triggered, not on any push to main, if we don't mind having to remember that each time we merge a PR.


Not directly related, but I'm curious as to why 12 untagged images also get created in addition to the three that are tagged for the supported Python versions. Screenshotting because I'm about to delete all of these:

Image

It looks like this is also happens here in this repo, though.

Maybe warrants a separate issue if this isn't expected behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions