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

why is push disabled on your dockerbuild? #353

Closed
KyleSanderson opened this issue Jul 24, 2024 · 4 comments
Closed

why is push disabled on your dockerbuild? #353

KyleSanderson opened this issue Jul 24, 2024 · 4 comments
Assignees
Labels
bug Something isn't working triage This will looked at

Comments

@KyleSanderson
Copy link

Describe the bug

@KyleSanderson KyleSanderson added the bug Something isn't working label Jul 24, 2024
@github-actions github-actions bot added the triage This will looked at label Jul 24, 2024
@juftin
Copy link
Owner

juftin commented Jul 25, 2024

There are two docker image build jobs in CI/CD. The one that you linked is a job titled docker-ci-test which is simply a test that ensures the image can built:

The second job is titled docker-hub-publish and is located in the publish.yaml workflow. This where the artifact is pushed after a release is generated:

- name: Docker Image Building and Publishing
id: docker_build
uses: docker/build-push-action@v5
with:
push: true
tags: juftin/${{ env.PACKAGE_NAME }}:latest,juftin/${{ env.PACKAGE_NAME }}:${{ env.PACKAGE_VERSION }}

@juftin juftin closed this as completed Jul 25, 2024
@KyleSanderson
Copy link
Author

The second job is titled docker-hub-publish and is located in the publish.yaml workflow. This where the artifact is pushed after a release is generated:

- name: Docker Image Building and Publishing
id: docker_build
uses: docker/build-push-action@v5
with:
push: true
tags: juftin/${{ env.PACKAGE_NAME }}:latest,juftin/${{ env.PACKAGE_NAME }}:${{ env.PACKAGE_VERSION }}

Ah! You're still using Docker Hub! Would it be possible to also push to GitHub Packages? I was looking for one, didn't find one, and ended up making my own. Would much rather prefer to stay on the upstream image.

@juftin
Copy link
Owner

juftin commented Jul 25, 2024

Yep, publishing to Docker Hub is part of the release process: https://hub.docker.com/r/juftin/camply

I'd consider using the GitHub Docker Container Registry, but would probably prefer just to use a single registry. Any reason why you prefer to pull an image from GitHub instead of Docker Hub?

@KyleSanderson
Copy link
Author

I just didn't see it on the RHS (packages) and there was no mention of docker in the readme.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage This will looked at
Projects
None yet
Development

No branches or pull requests

2 participants