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

Fixing Docker Hub publishes #7

Merged
merged 16 commits into from
Sep 15, 2020
Merged

Fixing Docker Hub publishes #7

merged 16 commits into from
Sep 15, 2020

Conversation

danjbh
Copy link
Contributor

@danjbh danjbh commented Sep 10, 2020

what?!

I had originally modeled the Github action build triggers against another project, and upon further analysis, I don't think the project I modeled is actually working properly. In a nutshell, the release created trigger wasn't firing when the auto-release workflow was executed, which means we were never getting Docker images with actual semver tags in Docker Hub.

In addition, I had to cleanup some of the expression logic to properly match github.ref.

Anyhow, I was able to test it in my branch before merging to master by just pushing a new tag, and I'm happy to report it's working. Here's the behavior...

  • If you're pushing a new commit against a non-forked PR, it will build/push a new image to Docker hub (with both an sha-<sha> AND a pr-<num>-merge tag
  • If a new tag (or release) is created, it will build an image and upload it to Docker hub using the proper semver format (generated by auto-release, but without the leading v)

What I haven't tested is the auto-release portion, but I'm fairly certain it should work with this method. Of course, I thought the past couple attempts would work, and I think I'm starting to question my own sanity at this point.

@danjbh danjbh requested a review from osterman September 10, 2020 02:29
@danjbh danjbh self-assigned this Sep 10, 2020
@danjbh danjbh changed the title Fixing Docker releases (final attempt) Fixing Docker Hub publishes Sep 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants