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

More fixes to app-rebuild logic #700

Merged
merged 1 commit into from
Dec 10, 2024
Merged

More fixes to app-rebuild logic #700

merged 1 commit into from
Dec 10, 2024

Conversation

gerrod3
Copy link
Collaborator

@gerrod3 gerrod3 commented Dec 9, 2024

Second round of fixes:

  1. The output, rebuilt_images didn't seem to be getting set, so switched it to how all the other outputs are set.
  2. Add some more debugging statements so I can see what is being stored in the cache
  3. When we don't do a rebuild there is no image to get versions from, so return back the cached version

@@ -121,9 +124,13 @@ runs:
id: image_version_branch
run: |
base_image=$(echo ${{ inputs.image_name }} | cut -d '-' -f1)
app_version=$(podman run --pull=never pulp/${{ inputs.image_name }}:ci-amd64 bash -c "pip3 show pulpcore | sed -n -e 's/Version: //p'")
if [[ "${{ env.BUILD }}" == "true" ]]; then
Copy link
Member

Choose a reason for hiding this comment

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

Should we not rely on the env here?

Suggested change
if [[ "${{ env.BUILD }}" == "true" ]]; then
if [[ "${{ steps.rebuild_needed.outputs.build }}" == "true" ]]; then

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yep, remove env.BUILD since it's no longer needed.

@gerrod3 gerrod3 merged commit 981069c into pulp:latest Dec 10, 2024
6 checks passed
@gerrod3 gerrod3 deleted the app-fixes-2 branch December 10, 2024 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants