Skip to content

Commit 3168596

Browse files
Merge branch 'release' of github.com:AntonioFalcao/Dotnet5.GraphQL3.WebApplication into feature/graphql-4
2 parents 5958bef + 086992e commit 3168596

2 files changed

Lines changed: 42 additions & 6 deletions

File tree

.github/workflows/create-release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,45 @@ jobs:
1313
steps:
1414
- name: Checkout code
1515
uses: actions/checkout@v2
16+
17+
- name: Test for get release data
18+
run: |
19+
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME
20+
21+
echo $IMAGE_ID
22+
23+
# Change all uppercase to lowercase
24+
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
25+
26+
echo $IMAGE_ID
27+
28+
# Strip git ref prefix from version
29+
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
30+
echo $VERSION
31+
32+
# Strip "v" prefix from tag name
33+
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
34+
35+
echo $VERSION
36+
37+
# Use Docker `latest` tag convention
38+
[ "$VERSION" == "master" ] && VERSION=latest
39+
40+
echo $VERSION
41+
echo $IMAGE_ID
42+
43+
echo IMAGE_ID=$IMAGE_ID
44+
echo VERSION=$VERSION
45+
46+
echo $IMAGE_ID:$VERSION
47+
48+
docker tag image $IMAGE_ID:$VERSION
49+
docker push $IMAGE_ID:$VERSION
50+
1651
- name: Create Release
1752
id: create_release
1853
uses: actions/create-release@v1
54+
1955
env:
2056
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2157
with:

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Dotnet6.GraphQL4.WebApplication
22

3-
This project exemplify the implementation and **dockerization** of a simple Razor Web MVC Core consuming a full **GraphQL 4** Web API, build in a **.NET 6** multi-layer project, considering development best practices, like **SOLID**, **KISS** and **DRY**, applying **Domain-Driven** concepts in a **Hexagonal Architecture**.
3+
This project exemplifies the implementation and **dockerization** of a simple Razor Web MVC Core consuming a full **GraphQL 4** Web API, build in a **.NET 6** multi-layer project, considering development best practices, like **SOLID**, **KISS** and **DRY**, applying **Domain-Driven** concepts in a **Hexagonal Architecture**.
44

55
### Give a Star! :star:
66

@@ -652,14 +652,14 @@ ___
652652

653653
## Built With
654654

655-
### Microsoft Stack - v5.0/6.0
655+
### Microsoft Stack - v6 - preview 2
656656

657-
* [.NET 5.0](https://devblogs.microsoft.com/dotnet/announcing-net-5-0/) - Base framework;
658-
* [ASP.NET 5.0](https://devblogs.microsoft.com/aspnet/announcing-asp-net-core-in-net-5/) - Web framework;
659-
* [Entity Framework Core 6.0 (preview)](https://devblogs.microsoft.com/dotnet/announcing-entity-framework-core-6-0-preview-1/) - ORM;
657+
* [.NET 6](https://devblogs.microsoft.com/dotnet/announcing-net-6-preview-2/) - Base framework;
658+
* [ASP.NET 6](https://devblogs.microsoft.com/aspnet/asp-net-core-updates-in-net-6-preview-2/) - Web framework;
659+
* [Entity Framework Core 6](https://devblogs.microsoft.com/dotnet/announcing-entity-framework-core-6-0-preview-2/) - ORM;
660660
* [Microsoft SQL Server on Linux for Docker](https://hub.docker.com/_/microsoft-mssql-server) - Database.
661661
662-
### GraphQL Stack - v3.0
662+
### GraphQL Stack - v4
663663

664664
* [GraphQL](https://graphql.org/) - GraphQL is a query language for APIs and a runtime for fulfilling those queries with data;
665665
* [GraphQL for .NET](https://github.com/graphql-dotnet/graphql-dotnet/) - This is an implementation of GraphQL in .NET;

0 commit comments

Comments
 (0)