Skip to content
This repository has been archived by the owner on Nov 2, 2024. It is now read-only.

Commit

Permalink
fix(ci): Correct image name in metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
EyeCantCU committed May 13, 2024
1 parent aa376f6 commit af2ca2b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/reusable-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- base

steps:
# Checkout push-to-registry action GitHub repository
# Checkout GitHub repository
- name: Checkout Push to Registry action
uses: actions/checkout@v4

Expand Down Expand Up @@ -134,13 +134,21 @@ jobs:
fi
echo "SOURCE_IMAGE_VERSION=$ver" >> $GITHUB_ENV
# Workaround bug where capital letters in your GitHub username make it impossible to push to GHCR.
# https://github.com/macbre/push-to-ghcr/issues/12
- name: Lowercase Registry
id: registry_case
uses: ASzc/change-string-case-action@v6
with:
string: ${{ env.IMAGE_REGISTRY }}

# Generate image metadata
- name: Image Metadata
uses: docker/metadata-action@v5
id: meta
with:
images: |
${{ env.IMAGE_NAME }}
${{ steps.registry_case.outputs.lowercase }}/${{ env.IMAGE_NAME }}
labels: |
org.opencontainers.image.title=${{ env.IMAGE_NAME }}
org.opencontainers.image.version=${{ env.SOURCE_IMAGE_VERSION }}
Expand Down

0 comments on commit af2ca2b

Please sign in to comment.