Skip to content

Commit 27423ad

Browse files
Romain-Grososclaude
andcommitted
fix: CI Docker tags must be lowercase, upgrade docker actions
- Use hardcoded lowercase image prefix instead of github.repository - Upgrade docker/login-action to v4 and docker/build-push-action to v7 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 883b551 commit 27423ad

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request:
77
branches: [main]
88

9+
env:
10+
REGISTRY: ghcr.io
11+
IMAGE_PREFIX: ghcr.io/rwx-g/stackoverkill.io
12+
913
jobs:
1014
validate:
1115
name: Lint, Typecheck & Test
@@ -53,28 +57,28 @@ jobs:
5357
- uses: actions/checkout@v5
5458

5559
- name: Log in to GitHub Container Registry
56-
uses: docker/login-action@v3
60+
uses: docker/login-action@v4
5761
with:
58-
registry: ghcr.io
62+
registry: ${{ env.REGISTRY }}
5963
username: ${{ github.actor }}
6064
password: ${{ secrets.GITHUB_TOKEN }}
6165

6266
- name: Build & push frontend image
63-
uses: docker/build-push-action@v6
67+
uses: docker/build-push-action@v7
6468
with:
6569
context: .
6670
file: docker/frontend.Dockerfile
6771
push: true
6872
tags: |
69-
ghcr.io/${{ github.repository }}/frontend:latest
70-
ghcr.io/${{ github.repository }}/frontend:${{ github.sha }}
73+
${{ env.IMAGE_PREFIX }}/frontend:latest
74+
${{ env.IMAGE_PREFIX }}/frontend:${{ github.sha }}
7175
7276
- name: Build & push backend image
73-
uses: docker/build-push-action@v6
77+
uses: docker/build-push-action@v7
7478
with:
7579
context: .
7680
file: docker/backend.Dockerfile
7781
push: true
7882
tags: |
79-
ghcr.io/${{ github.repository }}/backend:latest
80-
ghcr.io/${{ github.repository }}/backend:${{ github.sha }}
83+
${{ env.IMAGE_PREFIX }}/backend:latest
84+
${{ env.IMAGE_PREFIX }}/backend:${{ github.sha }}

0 commit comments

Comments
 (0)