Comments (6)
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.
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.
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.
@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:
from docker-build-push.
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.
@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)
- Set output warning when running this action HOT 7
- Github action Error: Dockerfile does not exist in location Dockerfile HOT 8
- Build The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. HOT 7
- Docker Push without build HOT 2
- Support for pull_request event
- Support for pull_request event HOT 6
- Output image SHA256 digest(s) HOT 4
- ERROR: failed to solve: Internal: header key "exclude-patterns" contains value with non-printable ASCII characters HOT 3
- Why is my organization's name a secret? HOT 1
- How do I find the correct registry and image name to use? HOT 2
- Any plan to support Azure Container Registries? HOT 4
- Exit Code 1 after pushing latest tag HOT 1
- Is it possible to cache node_modules that were installed in Dockerfile? HOT 1
- "Node.js 16 actions are deprecated" warning HOT 1
- Action fails pipeline if credentials are not supplied HOT 9
- Not working with Artifact Registry HOT 2
- Conditionally Setting `addLatest` does not work for truthy values HOT 1
- Why is there no switch to set whether to push all tags? HOT 4
- Input multiPlatform is set to true, skipping Docker push step HOT 2
- How to push latest tag only upon releases HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-build-push.