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

build: push docker image to ghcr.io #1237

Merged
merged 1 commit into from
Apr 11, 2023

Conversation

Thunderbottom
Copy link
Contributor

With the new recent changes in dockerhub1, we should start pushing images to ghcr, and eventually phase out the existing dockerhub setup.

This PR adds a few configuration steps required to push images to ghcr alongside dockerhub.

with the new recent changes in dockerhub[1] we should
start pushing images to ghcr, and eventually phase out
the existing dockerhub setup.

[1]: https://blog.alexellis.io/docker-is-deleting-open-source-images/

Signed-off-by: Chinmay D. Pai <[email protected]>
@knadh
Copy link
Owner

knadh commented Mar 19, 2023

Thanks @Thunderbottom. Have you been able to test/simulate this on another repo?

@knadh knadh added the enhancement New feature or request label Mar 19, 2023
@Thunderbottom
Copy link
Contributor Author

yes, I did simulate a dry-run of GH actions in this PR locally using act

Here's the output:

*DRYRUN* [goreleaser/goreleaser] 🚀  Start image=catthehacker/ubuntu:act-latest
*DRYRUN* [goreleaser/goreleaser]   🐳  docker pull image=catthehacker/ubuntu:act-latest platform= username= forcePull=false
*DRYRUN* [goreleaser/goreleaser]   🐳  docker create image=catthehacker/ubuntu:act-latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
*DRYRUN* [goreleaser/goreleaser]   🐳  docker run image=catthehacker/ubuntu:act-latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
*DRYRUN* [goreleaser/goreleaser]   ☁  git clone 'https://github.com/actions/setup-go' # ref=v2
*DRYRUN* [goreleaser/goreleaser]   ☁  git clone 'https://github.com/docker/login-action' # ref=v1
*DRYRUN* [goreleaser/goreleaser]   ☁  git clone 'https://github.com/docker/login-action' # ref=v2
*DRYRUN* [goreleaser/goreleaser]   ☁  git clone 'https://github.com/goreleaser/goreleaser-action' # ref=v2
*DRYRUN* [goreleaser/goreleaser] ⭐ Run Main Checkout
*DRYRUN* [goreleaser/goreleaser]   ✅  Success - Main Checkout
*DRYRUN* [goreleaser/goreleaser] ⭐ Run Main Set up Go
*DRYRUN* [goreleaser/goreleaser]   ✅  Success - Main Set up Go
*DRYRUN* [goreleaser/goreleaser] ⭐ Run Main Login to Docker Registry
*DRYRUN* [goreleaser/goreleaser]   ✅  Success - Main Login to Docker Registry
*DRYRUN* [goreleaser/goreleaser] ⭐ Run Main Login to GitHub Docker Registry
*DRYRUN* [goreleaser/goreleaser]   ✅  Success - Main Login to GitHub Docker Registry
*DRYRUN* [goreleaser/goreleaser] ⭐ Run Main Prepare Dependencies
*DRYRUN* [goreleaser/goreleaser]   ✅  Success - Main Prepare Dependencies
*DRYRUN* [goreleaser/goreleaser] ⭐ Run Main Run GoReleaser
*DRYRUN* [goreleaser/goreleaser]   ✅  Success - Main Run GoReleaser
*DRYRUN* [goreleaser/goreleaser] ⭐ Run Post Login to GitHub Docker Registry
*DRYRUN* [goreleaser/goreleaser]   ✅  Success - Post Login to GitHub Docker Registry
*DRYRUN* [goreleaser/goreleaser] ⭐ Run Post Login to Docker Registry
*DRYRUN* [goreleaser/goreleaser]   ✅  Success - Post Login to Docker Registry
*DRYRUN* [goreleaser/goreleaser] 🏁  Job succeeded

.goreleaser.yml Show resolved Hide resolved
@knadh knadh merged commit 8c46b75 into knadh:master Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants