This repository has been archived by the owner on Apr 16, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cfa501e
commit 610933d
Showing
152 changed files
with
193 additions
and
24,653 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# User-specific files | ||
*.suo | ||
*.user | ||
*.vs | ||
*.log | ||
|
||
.vs | ||
.git | ||
|
||
**/Squidex.Identity/appsettings.Development.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
clone: | ||
git: | ||
image: plugins/git:next | ||
pull: true | ||
|
||
pipeline: | ||
test_pull_request: | ||
image: docker | ||
commands: | ||
- docker build -t squidex/squidex-identity:test_pull_request . | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
- /var/lib/docker:/var/lib/docker | ||
when: | ||
event: pull_request | ||
|
||
build_dev: | ||
image: docker | ||
commands: | ||
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD | ||
- docker build -t squidex/squidex-identity:dev . | ||
- docker push squidex/squidex-identity:dev | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
- /var/lib/docker:/var/lib/docker | ||
secrets: [ docker_username, docker_password ] | ||
when: | ||
event: push | ||
branch: [ master ] | ||
|
||
build_release: | ||
image: docker | ||
commands: | ||
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD | ||
- docker build -t squidex/squidex-identity:latest -t squidex/squidex-identity:$TAG . | ||
- docker push squidex/squidex-identity:latest | ||
- docker push squidex/squidex-identity:$TAG | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
- /var/lib/docker:/var/lib/docker | ||
environment: | ||
- TAG=${DRONE_TAG} | ||
secrets: [ docker_username, docker_password ] | ||
when: | ||
event: tag | ||
|
||
slack: | ||
image: plugins/slack | ||
template: > | ||
{{#success build.status}} | ||
build {{build.number}} succeeded. Good job. | ||
{{else}} | ||
build {{build.number}} failed. Fix me please. | ||
{{/success}} | ||
secrets: [ slack_webhook ] | ||
when: | ||
status: [ failure, success ] | ||
|
||
cleanup: | ||
image: docker | ||
commands: | ||
- docker system prune -f | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
- /var/lib/docker:/var/lib/docker | ||
when: | ||
status: failure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
############################################################################### | ||
# Set default behavior to automatically normalize line endings. | ||
############################################################################### | ||
* text=auto | ||
|
||
############################################################################### | ||
# Set default behavior for command prompt diff. | ||
# | ||
# This is need for earlier builds of msysgit that does not have it on by | ||
# default for csharp files. | ||
# Note: This is only used by command line | ||
############################################################################### | ||
#*.cs diff=csharp | ||
|
||
############################################################################### | ||
# Set the merge driver for project and solution files | ||
# | ||
# Merging from the command prompt will add diff markers to the files if there | ||
# are conflicts (Merging from VS is not affected by the settings below, in VS | ||
# the diff markers are never inserted). Diff markers may cause the following | ||
# file extensions to fail to load in VS. An alternative would be to treat | ||
# these files as binary and thus will always conflict and require user | ||
# intervention with every merge. To do so, just uncomment the entries below | ||
############################################################################### | ||
#*.sln merge=binary | ||
#*.csproj merge=binary | ||
#*.vbproj merge=binary | ||
#*.vcxproj merge=binary | ||
#*.vcproj merge=binary | ||
#*.dbproj merge=binary | ||
#*.fsproj merge=binary | ||
#*.lsproj merge=binary | ||
#*.wixproj merge=binary | ||
#*.modelproj merge=binary | ||
#*.sqlproj merge=binary | ||
#*.wwaproj merge=binary | ||
|
||
############################################################################### | ||
# behavior for image files | ||
# | ||
# image files are treated as binary by default. | ||
############################################################################### | ||
#*.jpg binary | ||
#*.png binary | ||
#*.gif binary | ||
|
||
############################################################################### | ||
# diff behavior for common document formats | ||
# | ||
# Convert binary document formats to text before diffing them. This feature | ||
# is only available from the command line. Turn it on by uncommenting the | ||
# entries below. | ||
############################################################################### | ||
#*.doc diff=astextplain | ||
#*.DOC diff=astextplain | ||
#*.docx diff=astextplain | ||
#*.DOCX diff=astextplain | ||
#*.dot diff=astextplain | ||
#*.DOT diff=astextplain | ||
#*.pdf diff=astextplain | ||
#*.PDF diff=astextplain | ||
#*.rtf diff=astextplain | ||
#*.RTF diff=astextplain | ||
|
||
*.sh text eol=lf | ||
*.yml text eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# | ||
# Stage 1, Prebuild | ||
# | ||
FROM squidex/aspnetcore-build-phantomjs-chromium:2.0.3-jessie-fix1 as builder | ||
|
||
COPY src/Squidex/package.json /tmp/package.json | ||
|
||
# Install Node packages | ||
RUN cd /tmp && npm install | ||
|
||
COPY . . | ||
|
||
WORKDIR / | ||
|
||
# Build Frontend | ||
RUN cp -a /tmp/node_modules /src/Squidex/ \ | ||
&& cd /src/Squidex \ | ||
&& npm run test:coverage \ | ||
&& npm run build:copy \ | ||
&& npm run build | ||
|
||
# Test Backend | ||
RUN dotnet restore \ | ||
&& dotnet test tests/Squidex.Infrastructure.Tests/Squidex.Infrastructure.Tests.csproj \ | ||
&& dotnet test tests/Squidex.Domain.Apps.Core.Tests/Squidex.Domain.Apps.Core.Tests.csproj \ | ||
&& dotnet test tests/Squidex.Domain.Apps.Entities.Tests/Squidex.Domain.Apps.Entities.Tests.csproj \ | ||
&& dotnet test tests/Squidex.Domain.Users.Tests/Squidex.Domain.Users.Tests.csproj \ | ||
&& dotnet test tests/Squidex.Tests/Squidex.Tests.csproj | ||
|
||
# Publish | ||
RUN dotnet publish src/Squidex/Squidex.csproj --output /out/ --configuration Release | ||
|
||
# | ||
# Stage 2, Build runtime | ||
# | ||
FROM microsoft/aspnetcore:2.0.3-jessie | ||
|
||
# Default AspNetCore directory | ||
WORKDIR /app | ||
|
||
# Copy from build stage | ||
COPY --from=builder /out/ . | ||
|
||
EXPOSE 80 | ||
EXPOSE 33333 | ||
EXPOSE 40000 | ||
|
||
ENTRYPOINT ["dotnet", "Squidex.dll"] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
72 changes: 0 additions & 72 deletions
72
csharp/Sample.Blog/Sample.Blog/Controllers/HomeController.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.