fix: build do docker. Tentando indicar o arquivo.

This commit is contained in:
Ricardo Carneiro 2025-05-27 09:39:16 -03:00
parent 7fb00d3efc
commit 7b3aba06ac

View File

@ -10,21 +10,12 @@ jobs:
steps: steps:
- name: Checkout code - name: Checkout code
run: | uses: actions/checkout@v4
echo "✅ Manual checkout and workspace setup"
echo "Current directory: $(pwd)" - name: Setup .NET
echo "Git status:" uses: actions/setup-dotnet@v4
git status || echo "Not a git repo, fetching code..." with:
dotnet-version: '8.0.x' # ou sua versão
# Fazer checkout manual se necessário
git fetch origin main || echo "Fetch failed"
git reset --hard origin/main || echo "Reset failed"
git clean -fd || echo "Clean failed"
echo "After checkout - Root files:"
ls -la
echo "Looking for .sln files:"
find . -name "*.sln" -type f
- name: Restore dependencies - name: Restore dependencies
run: dotnet restore run: dotnet restore
@ -37,8 +28,14 @@ jobs:
- name: Publish application - name: Publish application
run: dotnet publish --configuration Release --output ./publish run: dotnet publish --configuration Release --output ./publish
- name: Build Docker image - name: Build Docker image 1
run: |
docker build -t ytextractor:${{ github.sha }} -f YTExtractor/Dockerfile .
docker tag ytextractor:${{ github.sha }} registry.redecarneir.us/ytextractor:latest
docker tag ytextractor:${{ github.sha }} registry.redecarneir.us/ytextractor:${{ github.sha }}
- name: Build Docker image 2
run: | run: |
echo "Current directory: $(pwd)" echo "Current directory: $(pwd)"
echo "Files in current directory:" echo "Files in current directory:"