Skip to content

Commit

Permalink
Feature/actions update (#40)
Browse files Browse the repository at this point in the history
* fix: corrigindo geracao de token para publicar a imagem e atualizando versao da sdk no build

* fix: corrigindo docker file

* docs: update readme

* docs: update pipeline name
  • Loading branch information
felipementel authored Apr 9, 2024
1 parent c575cf6 commit 98fe515
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-sonar.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: SonarCloud
name: Validation Code | SonarCloud
on:
pull_request:
types: [opened, synchronize, reopened]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/push-image.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker Hub
name: Publish Image

on:
push:
Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Get-Version from csproj
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,25 @@ reportgenerator -reports:..\TestResults\DotnetCoverageCollect\**\coverage.cobert

1. Comandos para submeter o código ao sonarqube do Container

```
dotnet sonarscanner begin /k:"CachorroAPI" /d:sonar.host.url="http://localhost:9044" /d:sonar.token="xxxxx" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml /d:sonar.exclusions="**/Migrations/**"
```

```
dotnet restore .\src\DEPLOY.Cachorro.Api\DEPLOY.Cachorro.Api.csproj
```

```
dotnet build .\src\DEPLOY.Cachorro.Api\DEPLOY.Cachorro.Api.csproj --no-incremental
```

```
dotnet-coverage collect 'dotnet test ./src/' -f xml -o 'coverage.xml'
```

```
dotnet-sonarscanner end /d:sonar.token="xxxxx"
```

---

Expand Down

0 comments on commit 98fe515

Please sign in to comment.