Skip to content

Commit 09ffece

Browse files
committed
fix: 🐛 Convert repository owner to lowercase for GHCR compatibility
1 parent baa71b3 commit 09ffece

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/workflows/docker-publish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,17 @@ jobs:
2929
username: ${{ github.actor }}
3030
password: ${{ secrets.GITHUB_TOKEN }}
3131

32+
- name: Set lowercase repository owner
33+
id: setup
34+
run: echo "owner_lower=$(echo '${{ github.repository_owner }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_OUTPUT
35+
3236
- name: Build and push Docker image (multi-arch)
3337
uses: docker/build-push-action@v4
3438
with:
3539
context: .
3640
push: true
3741
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6,linux/386
3842
tags: |
39-
ghcr.io/${{ github.repository_owner }}/calendar-proxy:latest
40-
ghcr.io/${{ github.repository_owner }}/calendar-proxy:${{ github.sha }}
43+
ghcr.io/${{ steps.setup.outputs.owner_lower }}/calendar-proxy:latest
44+
ghcr.io/${{ steps.setup.outputs.owner_lower }}/calendar-proxy:${{ github.sha }}
4145
file: Dockerfile

docker-compose.production.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
app:
3-
image: calendar-proxy:latest
3+
image: ghcr.io/oidatiftla/calendar-proxy:latest
44
restart: unless-stopped
55
expose:
66
- 8000 # Assuming the app is behind a reverse proxy

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
app:
3-
image: calendar-proxy:latest
3+
image: ghcr.io/oidatiftla/calendar-proxy:latest
44
build:
55
context: .
66
dockerfile: Dockerfile

0 commit comments

Comments
 (0)