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

feat: publish tagged images on release #150

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

obasilakis
Copy link
Contributor

@obasilakis obasilakis commented Jul 11, 2024

Description: Add Tagged Build and Publish for Docker Images on Release

Summary

This PR enhances the existing GitHub Actions workflow to build and publish Docker images with a tag corresponding to the release version whenever a new release is published. This ensures that Docker images are consistently tagged with the release version, improving traceability and version management.

Changes

  1. Trigger Workflow on Release:
  • Updated the on section to include the release event with the published type. This triggers the workflow whenever a new release is published.
  1. Use Release Tag for Docker Images:
  • Modified the Build and push image step to use the release tag (github.event.release.tag_name) as the Docker image tag if the event is a release. Otherwise, it defaults to the branch name.
  1. Display Image Tags:
  • Updated the display-tags job to show the correct image tags based on whether the event is a release or a push.

@mudler
Copy link
Contributor

mudler commented Jul 11, 2024

This fixes: #109

@mudler mudler linked an issue Jul 11, 2024 that may be closed by this pull request
3 tasks
Copy link

PR description is empty, please add some valid description

@mudler
Copy link
Contributor

mudler commented Jul 15, 2024

maybe @5u6r054 can you follow-up on this one since @obasilakis is on vacation?

@Luka-Loncar Luka-Loncar requested review from 5u6r054 and removed request for 5u6r054 July 15, 2024 16:37
@obasilakis obasilakis force-pushed the obasilakis/publish-tagged-images-on-release branch from c628974 to c40b50e Compare July 16, 2024 11:09
Copy link

PR description is empty, please add some valid description

@obasilakis obasilakis changed the title Publish tagged images on release feat: publish tagged images on release Jul 16, 2024
Copy link

PR description is empty, please add some valid description

@obasilakis obasilakis merged commit 3b4b93c into main Jul 16, 2024
4 of 7 checks passed
@obasilakis obasilakis deleted the obasilakis/publish-tagged-images-on-release branch July 16, 2024 11:31
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.

ci: Container images release
3 participants