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

Using Private Dockerhub & Attempting to change Github Actions vars.repository value doesn't result in changes? #314

Closed
g7morris opened this issue Dec 5, 2023 · 7 comments
Assignees

Comments

@g7morris
Copy link
Contributor

g7morris commented Dec 5, 2023

Hi @nigelgbanks

I'm attempting to build Docker images from our own forked isle-buildkit project that will push to our own private Dockerhub registry.

Screenshot 2023-12-05 at 2 11 25 PM

I'm still pushing the base image to the islandora Dockerhub registry which isn't ideal.

Did I miss any isle-buildkit documentation on how folks can do this but still stay at parity with isle-buildkit when submitting changes or do we need to build the ability to switch to non-Islandora repos and registries?

Thanks!

@g7morris g7morris changed the title Attempting to change Github Actions vars.repository value doesn't result in changes? Using Private Dockerhub & Attempting to change Github Actions vars.repository value doesn't result in changes? Dec 5, 2023
@g7morris
Copy link
Contributor Author

g7morris commented Dec 5, 2023

I'll note that it appears even if I edit the .env file in the codebase, new images are run and pushed to the islandora Dockerhub.

I also note that https://github.com/Islandora-Devops/isle-buildkit/blob/main/.github/workflows/description.yml#L26 seems to have hardcoded values too? Do we want to change this to a variable instead?

@nigelgbanks
Copy link
Contributor

We could change it such that REPOSITORY is set before calling make in

make push manifest "PROGRESS=plain" "BUILDER=${{ steps.buildx.outputs.name }}" "TARGET=${{ inputs.image }}-ci" "TAGS=${{ inputs.tags }}" "CONTEXTS=${{ inputs.contexts }}"
.

Also, for the descriptions, we could use the ${{ vars.repository }}.

Which I think covers the bases.

Though I'd probably say doing a fork is probably a waste of time. If you need to do customizations, extend the existing images and modify them. Your build times will be significantly faster, you'll have less code to maintain, and upgrades will be easier.

@g7morris
Copy link
Contributor Author

g7morris commented Dec 7, 2023

Ah fair play. It would be nice to see those changes go in though just in case. Is that something you can push please?

In the meantime, I appreciate your comment here:

If you need to do customizations, extend the existing images and modify them

I'll start focusing on that route and see what dividends pay out. Cheers @nigelgbanks !

@nigelgbanks
Copy link
Contributor

Oh yeah, these changes can go through. I'll push something up now.

@nigelgbanks
Copy link
Contributor

#316

@nigelgbanks
Copy link
Contributor

@g7morris rebase from main and let me know if the recent changes sort the issue for you.

@g7morris
Copy link
Contributor Author

g7morris commented Dec 7, 2023

Thank you!

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

No branches or pull requests

3 participants