summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorTulip Blossom <tulilirockz@outlook.com>2025-01-11 17:50:43 -0300
committerGitHub <noreply@github.com>2025-01-11 15:50:43 -0500
commit49a464cd27047246c9b6858f9edb0bbb37e514c1 (patch)
tree0a8c4042a58c8d1636a92e1da85e5dd3f3022500 /.github
parent10d65d36d6153495311750ab3ce6e9125214d148 (diff)
downloadAeroCore-OS-49a464cd27047246c9b6858f9edb0bbb37e514c1.tar.gz
AeroCore-OS-49a464cd27047246c9b6858f9edb0bbb37e514c1.zip
fix: registry-case action is still necessary (#56)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml10
1 files changed, 9 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 1fcf523..0d2f144 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -133,6 +133,14 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
+ # 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 }}
+
- name: Push To GHCR
uses: redhat-actions/push-to-registry@5ed88d269cf581ea9ef6dd6806d01562096bee9c # v2
if: github.event_name != 'pull_request' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
@@ -141,7 +149,7 @@ jobs:
REGISTRY_USER: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ github.token }}
with:
- registry: ${{ env.IMAGE_REGISTRY }}
+ registry: ${{ steps.registry_case.outputs.lowercase }}
image: ${{ env.IMAGE_NAME }}
tags: ${{ steps.metadata.outputs.tags }}
username: ${{ env.REGISTRY_USER }}