Git Product home page Git Product logo

Comments (6)

mr-smithers-excellent avatar mr-smithers-excellent commented on August 19, 2024 2

Hi @advait - thank you for the feature request. Completely agree and would be happy to add support. I will do a POC in the next day or so. If thereโ€™s anything else special about your use case, please let me know in the meantime.

from docker-build-push.

advait avatar advait commented on August 19, 2024

Thanks @mr-smithers-excellent! The docs are very sparse on this one. Here's what worked for me:

docker login docker.pkg.github.com --username [namespace] --password "${{secrets.GITHUB_TOKEN}}"
docker push docker.pkg.github.com/[namespace]/[package]/[image-name]:[image-tag]

The namespace is typically your github username, the package is the github project/package name. The image-name and image-tag are arbitrary.

The GITHUB_TOKEN is automatically provided by github actions.

from docker-build-push.

mr-smithers-excellent avatar mr-smithers-excellent commented on August 19, 2024

Hi @advait, I have a branch with GitHub Docker Registry support added. Could you give this a try and let me know how it goes?

  • It is assumed you'll be pushing the image to a repo inside your GitHub organization, unless you set githubOrg
  • Provider the image name in github-repo-name/image-name format
  • Provide either the github.actor or an alternate username for Docker login
  • Pass the default GitHub Actions token or custom secret with proper push permissions
uses: mr-smithers-excellent/docker-build-push@github-registry
with:
  image: github-repo/image-name
  registry: docker.pkg.github.com
  githubOrg: override-org # optional
  username: ${{ github.actor }}
  password: ${{ secrets.GITHUB_TOKEN }} 

from docker-build-push.

advait avatar advait commented on August 19, 2024

@mr-smithers-excellent this is working great here!

This is likely unrelated, but any chance we can get an option to output the docker build logs? Currently, this is all I'm seeing:
image

from docker-build-push.

mr-smithers-excellent avatar mr-smithers-excellent commented on August 19, 2024

Docker build logs, eh? Guess those would be helpful. Shouldn't be a problem.

Pretty cool project you're working on there btw.

from docker-build-push.

mr-smithers-excellent avatar mr-smithers-excellent commented on August 19, 2024

@advait if you want to give it one more whirl, docker build and docker push commands now pipe to stdout in the GitHub Actions console.

from docker-build-push.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.