Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: options to configure local registry #113

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

tthvo
Copy link

@tthvo tthvo commented May 9, 2024

Fixes #76

Description

Add options to configure an insecure local registry. An example workflow file can be:

name: Create Cluster with Registry

on: pull_request

jobs:
  create-cluster-with-registry:
    runs-on: ubuntu-latest
    steps:
      - name: Kubernetes KinD Cluster
        uses: helm/kind-action@v1
        with:
          registry: true
          registry_name: my-registry
          registry_port: 5001
          registry_enable_delete: true

Does this look alright?

Credits: Thanks https://github.com/container-tools/kind-action for providing the inspiration.

@tthvo tthvo force-pushed the local-registry branch 2 times, most recently from 12cb1e9 to becd144 Compare May 10, 2024 20:32
@cpanato cpanato requested a review from davidkarlsen May 13, 2024 08:25
local_reg=custom-registry:5001

docker pull busybox
docker tag busybox $local_reg/localbusybox
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where this $local_reg come from?
we need to use the github actions syntax and export that as github output, otherwise people will not know how to get that

Copy link
Author

@tthvo tthvo May 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yes agree! I updated the action to export the registry address (registry-name:registry-port) at LOCAL_REGISTRY env var. How about now?

Copy link
Author

@tthvo tthvo May 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or would you prefer the it as step output instead?

That being said I think I misunderstood your suggestion. The github output seems like a better and more flexible option here as it avoids any conflicts in env vars. How about now?

Copy link
Member

@cpanato cpanato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems ok, just need to revisit the local registry env var to follow github actions best practices

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: local registry
2 participants