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

Remove spaces from image name #948

Closed
wants to merge 2 commits into from
Closed

Remove spaces from image name #948

wants to merge 2 commits into from

Conversation

gonuke
Copy link
Member

@gonuke gonuke commented Feb 29, 2024

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
Member

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

Copy link
Member

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

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 }}

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
}}

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.

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
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.

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