This commit is contained in:
2025-06-16 17:01:06 -04:00
parent 91a4ba55a3
commit 5a4693b714

View File

@@ -22,19 +22,16 @@ jobs:
dotnet-version: '8.0.x'
- name: Restore dependencies
run: dotnet restore ./Astrocore.sln
run: dotnet restore ./Astrocore.Api/Astrocore.Api.csproj
- name: Build
run: dotnet build ./Astrocore.sln -c Release --no-restore
run: dotnet build ./Astrocore.Api/Astrocore.Api.csproj -c Release --no-restore
- name: Publish
run: dotnet publish ./Astrocore/Astrocore.Api/Astrocore.Api.csproj -c Release -o ./Astrocore/Astrocore.Api/out
- name: Log in to Docker Registry
run: echo "${{ secrets.DOCKER_REGISTRY_PASSWORD }}" | docker login ${{ env.REGISTRY }} -u ${{ secrets.DOCKER_REGISTRY_USERNAME }} --password-stdin
run: dotnet publish ./Astrocore.Api/Astrocore.Api.csproj -c Release -o ./Astrocore.Api/out
- name: Build Docker image
run: docker build -t $REGISTRY/$IMAGE_NAME:latest ./Astrocore/Astrocore.Api
run: docker build -t $REGISTRY/$IMAGE_NAME:latest ./Astrocore.Api
- name: Push Docker image
run: docker push $REGISTRY/$IMAGE_NAME:latest