Skip to content

Remove spaces from image name#948

Closed
gonuke wants to merge 2 commits into
developfrom
gonuke-patch-2
Closed

Remove spaces from image name#948
gonuke wants to merge 2 commits into
developfrom
gonuke-patch-2

Conversation

@gonuke

@gonuke gonuke commented Feb 29, 2024

Copy link
Copy Markdown
Member

Description

Removes extra spaces from the image used for advisory testing

Motivation and Context

Reformatting of GitHub action was incorrect and introduced illegal spaces.

@ahnaf-tahmid-chowdhury

Copy link
Copy Markdown
Member

Ops! Sorry. I have forgotten to resolve that one.

@ahnaf-tahmid-chowdhury ahnaf-tahmid-chowdhury left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I believe that by approaching the problem in this manner, the issue with spaces can be resolved.

-moab_${{ inputs.moab_version }}
-geant4_${{ inputs.geant4_version }}
-double_down_${{ inputs.double_down_version }}
ghcr.io/${{ github.repository_owner }}/dagmc-ci-ubuntu-${{ inputs.ubuntu_version }}-${{ inputs.compiler}}-hdf5_${{ inputs.hdf5_version}}-moab_${{ inputs.moab_version }}-geant4_${{ inputs.geant4_version }}-double_down_${{ inputs.double_down_version }}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
ghcr.io/${{ github.repository_owner }}/dagmc-ci-ubuntu-${{ inputs.ubuntu_version }}-${{ inputs.compiler}}-hdf5_${{ inputs.hdf5_version}}-moab_${{ inputs.moab_version }}-geant4_${{ inputs.geant4_version }}-double_down_${{ inputs.double_down_version }}
ghcr.io/${{ github.repository_owner
}}/dagmc-ci-ubuntu-${{ inputs.ubuntu_version
}}-${{ inputs.compiler
}}-hdf5_${{ inputs.hdf5_version
}}-moab_${{ inputs.moab_version
}}-geant4_${{ inputs.geant4_version
}}-double_down_${{ inputs.double_down_version
}}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

However, we need to give this a test run, don't know if the action actually works in this way.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Or, I think we may proceed with the following code that we already used in our docker_publish.yml:

      - name: Configure docker image tag
        run: |
          image_base_tag=ghcr.io/${{ github.repository_owner }}/
          image_base_tag+=dagmc-ci-ubuntu-${{ matrix.ubuntu_version }}
          image_base_tag+=-${{ matrix.compiler}}
          image_base_tag+=-hdf5_${{ matrix.hdf5_version}}
          image_base_tag+=-moab_${{ matrix.moab_version }}
          image_base_tag+=-geant4_${{ matrix.geant4_version }}
          image_base_tag+=-double_down_${{ matrix.double_down_version }}
          echo "image_base_tag=${image_base_tag}" >> "$GITHUB_ENV"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

If you make a PR with this update, I'll withdraw mine and review yours.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

PR #949 fixed the incorrect and introduced illegal spaces in the action.yml file.

@gonuke gonuke closed this Feb 29, 2024
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