Skip to content

Commit 76e8448

Browse files
authored
fix: convertir IMAGE_NAME a lowercase para Docker (#109)
Cambios en deploy.yml: ✅ IMAGE_NAME ahora se genera en lowercase usando tr '[:upper:]' '[:lower:]' ✅ Eliminada línea duplicada de docker login (solo queda una con GITHUB_TOKEN) ✅ Step separado para crear la variable de entorno
1 parent 1d44318 commit 76e8448

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ jobs:
1212
packages: write
1313

1414
env:
15-
IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/neurobank:${{ github.sha }}
1615
RAILWAY_API: https://backboard.railway.app/graphql
1716

1817
steps:
1918
- uses: actions/checkout@v4
2019

20+
- name: Set image name (lowercase)
21+
run: echo "IMAGE_NAME=ghcr.io/$(echo '${{ github.repository_owner }}' | tr '[:upper:]' '[:lower:]')/neurobank:${{ github.sha }}" >> $GITHUB_ENV
22+
2123
- name: Login to GHCR
22-
run: |
23-
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin
24-
echo "${{ secrets.GHCR_PAT }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
24+
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin
2525

2626
- name: Build Docker image
2727
run: docker build -t $IMAGE_NAME .

0 commit comments

Comments
 (0)