Replies: 4 comments 2 replies
-
|
Hi there @johnc-ftl and welcome to our community! Thank you for the feedback! |
Beta Was this translation helpful? Give feedback.
-
|
Same for me. We are considering git/issue-tracker/wiki cloud platform to migrate from our self-hosted environment. And have number of free-style projects built with make and deploying artifacts to nexus raw repo locally (e.g. MSI installers). There are "generic packages" in gitlab so I was pretty surprised there is no straightforward way to do it with github. Any workaround? Converting those projects to maven build is not an option... |
Beta Was this translation helpful? Give feedback.
-
|
This may not have been true in the past, but nowadays, you can do this using GHCR and a tool called - uses: oras-project/setup-oras@v1
with:
version: 1.2.2
# ... create `myfile.zip` (or whatever) somehow
# $SLUG is your package slug, e.g. `pkgw/my-generic-package`
# $TAG is the version tag, e.g. `latest`
- name: Push package
run: |
echo ${{ secrets.GITHUB_TOKEN }} |oras login --username ${{ github.repository_owner }} --password-stdin ghcr.io
oras push ghcr.io/$SLUG:$TAG --artifact-type application/vnd.my.whatever myfile.zipPulling is analogous: oras pull ghcr.io/$SLUG:$TAGIf you want your file to be usable in other frameworks, you'll need to actually set up real metadata, but if all you want to do is push and pull binary files, the above suffices. Read the ORAS docs if you want to get fancier. The main downside is that you do need this |
Beta Was this translation helpful? Give feedback.
-
|
@pkgw - that's brilliant! Thank you for posting about ORAS, I hadn't heard about it. It makes sense that at least one of the specialized package formats can be used for general purpose package/file/blob storage. I found a few articles that provide more depth: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It seems like an oversight that there is no "generic" packages support in github packages. I should be able to publish and fetch a zip (or other archive) file that is not a container, maven package, npm packages, or nuget package. Maven, npm, and nuget packages are useful for sharing libraries, but none of these are appropriate for an application installer, or other types of application packages or build output. Not everyone uses containers for all installations.
I note that there is an issue for generic packages on the roadmap, but it's been pushed out a few times, and I have no ability to comment on it. I'm pretty surprised that this wasn't included in the initial package support.
The API seems to require a specific package type (eg container). We'd like to migrate to github actions for our builds and deploys, but this is effectively a blocker for us. We're currently using Azure DevOps Artifacts Universal Packages for this purpose.
Related to #36023
Beta Was this translation helpful? Give feedback.
All reactions