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

Modifies republish workflow to also change versions #459

Merged
merged 1 commit into from
Nov 11, 2021
Merged

Conversation

dmikusa
Copy link
Contributor

@dmikusa dmikusa commented Nov 11, 2021

  • Checking for new versions will now look at the current repo's source code and pick the latest tag. This is the potential new target version. It'll check the target image to see if the potential new target version exists on that image. If it does, then the job completes as the image already exists. If it does not exist, then this becomes the new target version.

  • A new source version is then selected. It does this by pulling the tags for the source image, sorting and picking the most recent version. This results in getting the most recent snapshot of the source image at the time the new target image is published.

  • The workflow then uses the updated tool for republishing an image to change both the image id and version.

Signed-off-by: Daniel Mikusa dmikusa@vmware.com

Summary

Use Cases

Checklist

  • I have viewed, signed, and submitted the Contributor License Agreement.
  • I have linked issue(s) that this PR should close using keywords or the Github UI (See docs)
  • I have added an integration test, if necessary.
  • I have reviewed the styleguide for guidance on my code quality.
  • I'm happy with the commit history on this PR (I have rebased/squashed as needed).

- Checking for new versions will now look at the current repo's source code and pick the latest tag. This is the potential new target version. It'll check the target image to see if the potential new target version exists on that image. If it does, then the job completes as the image already exists. If it does not exist, then this becomes the new target version.
- A new source version is then selected. It does this by pulling the tags for the source image, sorting and picking the most recent version. This results in getting the most recent snapshot of the source image at the time the new target image is published.

- The workflow then uses the updated tool for republishing an image to change both the image id and version.

Signed-off-by: Daniel Mikusa <dmikusa@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:minor A change requiring a minor version bump type:enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant