diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 0a998ce..670c9bc 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -10,21 +10,12 @@ jobs: steps: - name: Checkout code - run: | - echo "✅ Manual checkout and workspace setup" - echo "Current directory: $(pwd)" - echo "Git status:" - git status || echo "Not a git repo, fetching code..." - - # 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 + uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '8.0.x' # ou sua versão - name: Restore dependencies run: dotnet restore @@ -37,8 +28,14 @@ jobs: - name: Publish application 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: | echo "Current directory: $(pwd)" echo "Files in current directory:"