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

Add support for custom Docker registries #275

Merged
merged 2 commits into from
Oct 4, 2023
Merged

Conversation

Chaseshak
Copy link
Contributor

@Chaseshak Chaseshak commented Oct 3, 2023

What's changing?

This allows a user to set the CONTAINER_REGISTRY environment variable
which can be used in place of the default of ghcr.io if a customer would
like to mirror our image so they can self host behind any proxies or other
custom network stack.

How's this tested?

  • Without any changes, the update, version, and regular commands (dry-run, etc.) should work as normal
  • If you want to test that the env variable is used, set the CONTAINER_REGISTRY=fake.registry variable in your env file and see that the commands fail (since that registry is fake)
    • You can then tag your local image to pretend it's from a different registry docker image tag ghcr.io/actions-importer/cli:latest fake.registry/actions-importer/cli:latest and run a dry-run or other command to see that it works

Closes github/customer-feedback#7007

@github-actions
Copy link

github-actions bot commented Oct 3, 2023

Unit Test Results

42 tests  ±0   42 ✔️ ±0   0s ⏱️ ±0s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ±0 

Results for commit bed6eb9. ± Comparison against base commit 0bdafdb.

♻️ This comment has been updated with latest results.

@Chaseshak Chaseshak marked this pull request as ready for review October 3, 2023 16:24
@Chaseshak Chaseshak requested a review from a team as a code owner October 3, 2023 16:24
src/ActionsImporter/App.cs Outdated Show resolved Hide resolved
src/ActionsImporter/Constants.cs Outdated Show resolved Hide resolved
@Chaseshak Chaseshak force-pushed the support-custom-registries branch 2 times, most recently from cd6e788 to 514a748 Compare October 3, 2023 17:08
This allows a user to set the `CONTAINER_REGISTRY` environment variable
which can be used in place of the default of ghcr.io if a customer would
like to mirror our image so they can self host behind any proxies or other
custom network stack.
@Chaseshak Chaseshak requested a review from ethanis October 3, 2023 17:13
Copy link
Member

@ethanis ethanis left a comment

Choose a reason for hiding this comment

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

:shipit:

@Chaseshak Chaseshak enabled auto-merge (squash) October 4, 2023 18:02
@Chaseshak Chaseshak merged commit 76bb9ec into main Oct 4, 2023
5 checks passed
@Chaseshak Chaseshak deleted the support-custom-registries branch October 4, 2023 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants