updated
This commit is contained in:
@@ -6,7 +6,7 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: docker.astrocore.space
|
REGISTRY: docker.astrocore.space
|
||||||
IMAGE_NAME: astrocore
|
IMAGE_NAME: astrocore/astrocore-api
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
@@ -22,16 +22,19 @@ jobs:
|
|||||||
dotnet-version: '8.0.x'
|
dotnet-version: '8.0.x'
|
||||||
|
|
||||||
- name: Restore dependencies
|
- name: Restore dependencies
|
||||||
run: dotnet restore
|
run: dotnet restore Astrocore/Astrocore.Api/Astrocore.Api.csproj
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: dotnet build --configuration Release --no-restore
|
run: dotnet build Astrocore/Astrocore.Api/Astrocore.Api.csproj -c Release --no-restore
|
||||||
|
|
||||||
- name: Publish
|
- 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
|
- 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
|
- name: Push Docker image
|
||||||
run: docker push $REGISTRY/$IMAGE_NAME:latest
|
run: docker push $REGISTRY/$IMAGE_NAME:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user