Skip to content

Commit

Permalink
lowercase github.repository
Browse files Browse the repository at this point in the history
  • Loading branch information
tmetzl committed Mar 28, 2024
1 parent 84b2b4d commit 128bb21
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build_e2xgrader_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ jobs:
id: print_image_tag
run: |
echo ${{ steps.set_image_tag.outputs.image_tag }}
- id: lower-repo
run: |
echo "repository=${GITHUB_REPOSITORY@L}" >> $GITHUB_OUTPUT
- name: Login to ghcr.io
if: ${{ inputs.registry == 'ghcr.io' }}
uses: docker/login-action@v3
Expand All @@ -97,7 +100,7 @@ jobs:
with:
context: images/e2xgrader-notebook
push: ${{ inputs.push }}
tags: ${{ inputs.registry }}/${{ github.repository }}/${{ steps.set_image_tag.outputs.image_tag }}
tags: ${{ inputs.registry }}/${{ steps.lower-repo.outputs.repository }}/${{ steps.set_image_tag.outputs.image_tag }}
build-args: |
IMAGE_SOURCE=${{ inputs.base_image_name }}:${{ inputs.base_image_tag }}
E2XGRADER_MODE=${{ matrix.e2xgrader_mode }}
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/build_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ jobs:
- name: Print the base image
run: |
echo "The base image to build from is ${{ inputs.base_image_name }}:${{ inputs.base_image_tag }}"
- id: lower-repo
run: |
echo "repository=${GITHUB_REPOSITORY@L}" >> $GITHUB_OUTPUT
- name: Check if files changed
if: ${{ ! inputs.force_build }}
uses: dorny/paths-filter@v3
Expand Down Expand Up @@ -82,7 +85,7 @@ jobs:
with:
context: images/${{ inputs.image_name }}
push: ${{ inputs.push }}
tags: ${{ inputs.registry }}/${{ github.repository }}/${{ inputs.image_name }}:${{ inputs.image_tag }}
tags: ${{ inputs.registry }}/${{ steps.lower-repo.outputs.repository }}/${{ inputs.image_name }}:${{ inputs.image_tag }}
build-args: |
IMAGE_SOURCE=${{ inputs.base_image_name }}:${{ inputs.base_image_tag }}
- name: List images
Expand Down

0 comments on commit 128bb21

Please sign in to comment.