Skip to content

Commit

Permalink
update cicd & docker
Browse files Browse the repository at this point in the history
  • Loading branch information
erayaydogdu committed Dec 11, 2023
1 parent 00ef6fe commit 515c572
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/dotnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,16 @@ jobs:
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
run: dotnet build -c Release --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Create Docker Image
run: dotnet publish -c Release -p:ContainerImageName=${{ secrets.DOCKER_USERNAME }}/minimal-url-shortener -p:RuntimeIdentifier=linux-arm64
docker:
name: Docker
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Create Docker Image
run: dotnet publish -c Release -p:ContainerImageName=${{ secrets.DOCKER_USERNAME }}/minimal-url-shortener -p:RuntimeIdentifier=linux-arm64
- name: Docker Login
uses: docker/login-action@v3
with:
Expand Down

0 comments on commit 515c572

Please sign in to comment.