Skip to content

Conversation

@Praveenraj-K
Copy link
Contributor

-Pushing the images in both Docker Hub & GitHub Container Registry "GHCR.io"
-Only initiate when there is a commit in the main branch using the workflow trigger.

Update backup repo images to push their docker image to GHCR Packages registry
Update backup repo images to push their docker image to GHCR Packages registry
@Praveenraj-K Praveenraj-K requested a review from devon-sil October 4, 2024 09:55
@devon-sil devon-sil requested a review from a team October 4, 2024 11:29
@devon-sil
Copy link
Contributor

@Praveenraj-K Thanks for putting together a PR for this. I've added the developers for review.

Copy link
Contributor

@briskt briskt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! I believe just one change is needed, which is to include version tags.

Comment on lines 5 to 6
branches:
- main
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
branches:
- main
branches: [ 'main' ]
tags: [ '*' ]

I think this needs to include tags, otherwise we won't get image tags like 1.0.0.

Comment on lines 37 to 38
type=ref,event=branch # Tag with branch name
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
type=ref,event=branch # Tag with branch name
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=ref,event=branch # Tag with branch name
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}

We have only recently started adding semver tags. Previously, we would simply use type=ref,event=tag.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noted, Thanks Steve. I'll make the changes for the other the code so that it will be tagged by version's, instead of the branch. :)

@briskt briskt requested a review from a team October 7, 2024 06:22
udpated the branch and version tags
@forevermatt
Copy link

@Praveenraj-K, did you mean to merge this PR? It looks like it was closed without merging.

@forevermatt
Copy link

@Praveenraj-K, did you mean to merge this PR? It looks like it was closed without merging.

Ahh, I see. It was replaced by #14.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants