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

Automated image build and push not working on tags #100

Closed
mugdha-adhav opened this issue Dec 21, 2023 · 11 comments · Fixed by #108
Closed

Automated image build and push not working on tags #100

mugdha-adhav opened this issue Dec 21, 2023 · 11 comments · Fixed by #108
Labels
good-first-issue Good for newcomers help-wanted Extra attention is needed

Comments

@mugdha-adhav
Copy link
Collaborator

Whenever we create a new tag/release in GitHub, we expect that the image should be pushed for that tag in docker container registry (that's what we support currently).

Yesterday we merged this PR, and this action ran for image build and push on the default (master) branch.

But when we cut a tag v0.8.2 for that change, another action should have been triggered which built and pushed the image with that tag.

@mbtamuli
Copy link
Contributor

Hey 👋🏼 , since I added the workflow for pushing the images, I would like to chime in here.

Any suggestions on which approach to take? @warm-metal/csi-maintainers

  1. Fix existing workflow separately.
  2. Follow through with the necessities of Well defined developer workflow #96 and get that merged.

@mbtamuli
Copy link
Contributor

Looks like the mentions for team doesn't work for anyone outside the team. (Since 2014 apparently). Please tag the team @mugdha-adhav ?

@mugdha-adhav
Copy link
Collaborator Author

mugdha-adhav commented Dec 23, 2023

Any suggestions on which approach to take? @warm-metal/csi-maintainers

  1. Fix existing workflow separately.
  2. Follow through with the necessities of Well defined developer workflow #96 and get that merged.

@mugdha-adhav mugdha-adhav added good-first-issue Good for newcomers help-wanted Extra attention is needed labels Jan 4, 2024
@mbtamuli
Copy link
Contributor

mbtamuli commented Jan 12, 2024

The way you quoted my reply, it escaped the tagging of the maintainers.

@mugdha-adhav Anyways, maybe you can answer. Any advice on which approach to take?

@mugdha-adhav
Copy link
Collaborator Author

The way you quoted my reply, it escaped the tagging of the maintainers.

Ohh.. I wasn't aware (or didn't give a thorough thought) that the quoted reply would not notify the maintainers. I have updated the comment now.

@mugdha-adhav Anyways, maybe you can answer. Any advice on which approach to take?

I suppose you already have a PR ready for approach 2. JFYI, I have approved the PR.

@mugdha-adhav
Copy link
Collaborator Author

@mbtamuli in the last build that ran on the master branch of this repository after merging #108, it did the following -

  1. Skipped login for dockerHub
  2. Logged into github container registry
  3. Pushed the image to ghcr with tag latest (ghcr.io/warm-metal/csi-driver-image:latest)

Is this the expected behaviour?

@mbtamuli
Copy link
Contributor

@mugdha-adhav No that is not the expected behaviour. Can you re-run the job, this particular one - https://github.com/warm-metal/csi-driver-image/actions/runs/7513491548/job/20455310515, with debug logs - https://docs.github.com/en/actions/managing-workflow-runs/re-running-workflows-and-jobs#re-running-a-specific-job-in-a-workflow?

@mbtamuli
Copy link
Contributor

@mugdha-adhav Thanks for running the debug build. I see an error that I made. The name here is incorrect - warmmetal/csi-driver-image. I'll raise another PR to fix it.

Before I raise the next PR, can you verify if the behaviour of build and push for tags is working as expected? For now it will try to push to ghcr.io, but that'll be fixed in the PR to push to Docker Hub instead.

@mugdha-adhav
Copy link
Collaborator Author

Before I raise the next PR, can you verify if the behaviour of build and push for tags is working as expected?

Tested by creating a temporary tag v1.0.2 (which is already deleted), and here's the workflow that ran on tag creation event as expected 👍🏼

@mbtamuli
Copy link
Contributor

@mugdha-adhav This should give the expected behaviour - #113

@mbtamuli
Copy link
Contributor

@mugdha-adhav As you can see, the workflow is working fine now - https://github.com/warm-metal/csi-driver-image/actions/runs/7514429735/job/20457294891.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good-first-issue Good for newcomers help-wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants