From ba36564852aada003e77456932fc8de793450b07 Mon Sep 17 00:00:00 2001 From: itzmarkoni Date: Mon, 16 Jun 2025 16:55:00 -0400 Subject: [PATCH] updated --- .gitea/workflows/publish.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index ed7e852..ea65546 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -6,7 +6,7 @@ on: env: REGISTRY: docker.astrocore.space - IMAGE_NAME: astrocore + IMAGE_NAME: astrocore/astrocore-api jobs: build-and-push: @@ -22,16 +22,19 @@ jobs: dotnet-version: '8.0.x' - name: Restore dependencies - run: dotnet restore + run: dotnet restore Astrocore/Astrocore.Api/Astrocore.Api.csproj - name: Build - run: dotnet build --configuration Release --no-restore + run: dotnet build Astrocore/Astrocore.Api/Astrocore.Api.csproj -c Release --no-restore - name: Publish - run: dotnet publish -c Release -o out + run: dotnet publish Astrocore/Astrocore.Api/Astrocore.Api.csproj -c Release -o out + + - name: Log in to Docker Registry + run: echo "${{ secrets.DOCKER_REGISTRY_PASSWORD }}" | docker login ${{ env.REGISTRY }} -u ${{ secrets.DOCKER_REGISTRY_USERNAME }} --password-stdin - name: Build Docker image - run: docker build -t $REGISTRY/$IMAGE_NAME:latest . + run: docker build -t $REGISTRY/$IMAGE_NAME:latest -f Astrocore/Astrocore.Api/Dockerfile . - name: Push Docker image - run: docker push $REGISTRY/$IMAGE_NAME:latest \ No newline at end of file + run: docker push $REGISTRY/$IMAGE_NAME:latest