Merge pull request 'fix: build do docker. Tentando indicar o arquivo.' (#8) from release/V1.0.0 into main
Some checks failed
Build and Deploy ASP.NET API / build-and-deploy (push) Failing after 1m27s
Some checks failed
Build and Deploy ASP.NET API / build-and-deploy (push) Failing after 1m27s
Reviewed-on: http://git.carneiro.ddnsfree.com/ricardo/YTExtractor/pulls/8
This commit is contained in:
commit
ca438c9016
@ -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)"
|
|
||||||
echo "Git status:"
|
|
||||||
git status || echo "Not a git repo, fetching code..."
|
|
||||||
|
|
||||||
# Fazer checkout manual se necessário
|
- name: Setup .NET
|
||||||
git fetch origin main || echo "Fetch failed"
|
uses: actions/setup-dotnet@v4
|
||||||
git reset --hard origin/main || echo "Reset failed"
|
with:
|
||||||
git clean -fd || echo "Clean failed"
|
dotnet-version: '8.0.x' # ou sua versão
|
||||||
|
|
||||||
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
|
||||||
@ -38,7 +29,13 @@ 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:"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user