Skip to content

Commit

Permalink
Update docker-build-check.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Javier Caceres <[email protected]>
  • Loading branch information
srnovus authored Nov 13, 2024
1 parent 22b4be3 commit 3819b74
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/docker-build-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Install pnpm
run: npm install -g pnpm

# Instalar dependencias usando pnpm (no congelamos el lockfile en CI)
# Instalar dependencias usando pnpm
- name: Install dependencies
run: pnpm install --no-frozen-lockfile

Expand All @@ -40,15 +40,14 @@ jobs:

# Crear la imagen de producción (usando la fase de producción)
- name: Build production Docker image
run: docker build --file Dockerfile --target production --tag fedired .
run: docker build --file Dockerfile --target production --tag fedired:latest .

# Login a Docker Hub con las credenciales del repositorio secreto
# Login a Docker Hub usando los secretos de GitHub
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login --username ${{ secrets.DOCKER_USERNAME }} --password-stdin

# Subir la imagen Docker a Docker Hub
- name: Push Docker image to Docker Hub
run: docker push fedired
run: |
docker tag fedired:latest ${{ secrets.DOCKER_USERNAME }}/fedired:latest
docker push ${{ secrets.DOCKER_USERNAME }}/fedired:latest

0 comments on commit 3819b74

Please sign in to comment.