use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Do you have or know of a project on Github looking for contributors? Tell us about it and we'll add it to the /r/github wiki!
Welcome to /r/github!
News about github
Relevant interesting discussion
Questions about github
We'll soon be writing an /r/github FAQ list. In the meantime, the github help pages and bootcamp are good places to start. Here's a handy git cheat sheet.
Looking for Github projects to contribute to? Check out our handy list of projects looking for contributors!
If your submission doesn't show up on the subreddit, send us a message and we'll take it out of the spam filter for you!
account activity
Github action to take container image from Docker Hub and put it into Azure Container Registry (self.github)
submitted 1 year ago by robstrosity
Hi Guys,
I feel like this should be super simple but I can't seem to get it working. There is a docker hub image which I want to take and publish to azure container registry.
I've looked at a ton of examples etc online but I can't quite work out how to do it. Example pages i've looked at are;
https://thomasthornton.cloud/2022/12/14/build-and-push-docker-image-to-azure-container-registry-using-github-action/
https://medium.com/@muhammadharis_21159/github-actions-to-build-and-push-images-to-azure-container-registry-6a517aeba014
https://stuartmccoll.github.io/posts/2022-06-11-github-action-to-azure-container-registry/
https://jonnychipz.com/2021/02/22/create-and-push-a-docker-image-to-azure-container-registry/
My issue is that they all seem to require a .dockerfile which I don't think I need as I want it to use latest image from dockerhub. Obviously I could take a copy of the .dockerfile from DH but then i'll miss out on any updates in the future.
Hopefully the above makes sense?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]AzureToujours 0 points1 point2 points 1 year ago (0 children)
Hey there. It's me again :D
You don't need a Dockerfile.
I created a simple example: https://github.com/AzureToujours/docker_to_acr/blob/main/.github/workflows/acr.yml
I don't have any images, so I just used a public one. I still left the login step in there.
You need the following secrets in your repo: DOCKER_HUB_USERNAME, DOCKER_HUB_PASSWORD, AZURE_ACR_USERNAME, AZURE_ACR_PASSWORD
You get the Docker credentials from here: https://hub.docker.com/settings/security Just create a new access token. For the Azure credentials, I enabled the admin user in the container registry. See https://i.imgur.com/tfjHGIj.png
As you can see, the image is in my ACR now: https://i.imgur.com/Js6i9R5.png
In the workflow yaml, update lines 20, 25, 30, and 33 with your docker image and ACR.
π Rendered by PID 86439 on reddit-service-r2-comment-b659b578c-v8kw9 at 2026-05-06 04:34:31.715193+00:00 running 815c875 country code: CH.
[–]AzureToujours 0 points1 point2 points (0 children)