Compare commits
19 Commits
63111bb737
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 49999f16b8 | |||
| 5cd50fde6e | |||
| 6d2a62d185 | |||
| 1865652e5b | |||
| fd366079b9 | |||
| 5516665824 | |||
|
|
df543cc239 | ||
|
|
b897f1d24e | ||
| 45444574db | |||
| efb4b78d61 | |||
| 6b78bc201b | |||
| c27fbb9e6f | |||
| 48709cb9c8 | |||
| cb8434e529 | |||
| 3797191107 | |||
|
|
499cd16190 | ||
|
|
6ebdadd059 | ||
|
|
06feaf97ec | ||
|
|
a7045b7d3e |
@@ -11,7 +11,7 @@ jobs:
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Login to Docker registry
|
||||
uses: docker/login-action@v1
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
@@ -38,5 +38,9 @@ jobs:
|
||||
docker rm rokoh || true
|
||||
docker image rm rokoh:latest
|
||||
fi
|
||||
docker pull registry.rokoh.com/rokoh:latest
|
||||
docker login registry.rokoh.com -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} && docker image pull registry.rokoh.com/rokoh:latest
|
||||
docker run -d -p 2000:80 --restart=always --name rokoh registry.rokoh.com/rokoh
|
||||
docker image prune -f
|
||||
|
||||
- name: Prune Docker resources
|
||||
run: docker system prune -af --volumes
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -3,12 +3,8 @@
|
||||
"WorkspaceRootPath": "C:\\Users\\clive\\source\\repos\\rokoh\\",
|
||||
"Documents": [
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\clive\\source\\repos\\rokoh\\.gitea\\workflows\\default.yml||{8B382828-6202-11D1-8870-0000F87579D2}",
|
||||
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:.gitea\\workflows\\default.yml||{8B382828-6202-11D1-8870-0000F87579D2}"
|
||||
},
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{3C910F6E-1007-44D0-910A-5D44B3CCD1B9}|rokoh\\rokoh.csproj|c:\\users\\clive\\source\\repos\\rokoh\\rokoh\\pages\\index.cshtml||{40D31677-CBC0-4297-A9EF-89D907823A98}",
|
||||
"RelativeMoniker": "D:0:0:{3C910F6E-1007-44D0-910A-5D44B3CCD1B9}|rokoh\\rokoh.csproj|solutionrelative:rokoh\\pages\\index.cshtml||{40D31677-CBC0-4297-A9EF-89D907823A98}"
|
||||
"AbsoluteMoniker": "D:0:0:{3C910F6E-1007-44D0-910A-5D44B3CCD1B9}|rokoh\\rokoh.csproj|c:\\users\\clive\\source\\repos\\rokoh\\rokoh\\pages\\shared\\_layout.cshtml||{40D31677-CBC0-4297-A9EF-89D907823A98}",
|
||||
"RelativeMoniker": "D:0:0:{3C910F6E-1007-44D0-910A-5D44B3CCD1B9}|rokoh\\rokoh.csproj|solutionrelative:rokoh\\pages\\shared\\_layout.cshtml||{40D31677-CBC0-4297-A9EF-89D907823A98}"
|
||||
}
|
||||
],
|
||||
"DocumentGroupContainers": [
|
||||
@@ -18,7 +14,7 @@
|
||||
"DocumentGroups": [
|
||||
{
|
||||
"DockedWidth": 200,
|
||||
"SelectedChildIndex": 3,
|
||||
"SelectedChildIndex": 6,
|
||||
"Children": [
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
@@ -29,34 +25,33 @@
|
||||
"Name": "ST:129:0:{1fc202d4-d401-403c-9834-5b218574bb67}"
|
||||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 1,
|
||||
"Title": "Index.cshtml",
|
||||
"DocumentMoniker": "C:\\Users\\clive\\source\\repos\\rokoh\\rokoh\\Pages\\Index.cshtml",
|
||||
"RelativeDocumentMoniker": "rokoh\\Pages\\Index.cshtml",
|
||||
"ToolTip": "C:\\Users\\clive\\source\\repos\\rokoh\\rokoh\\Pages\\Index.cshtml",
|
||||
"RelativeToolTip": "rokoh\\Pages\\Index.cshtml",
|
||||
"ViewState": "AQIAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000759|",
|
||||
"WhenOpened": "2024-05-06T12:47:02.897Z",
|
||||
"EditorCaption": ""
|
||||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 0,
|
||||
"Title": "default.yml",
|
||||
"DocumentMoniker": "C:\\Users\\clive\\source\\repos\\rokoh\\.gitea\\workflows\\default.yml",
|
||||
"RelativeDocumentMoniker": ".gitea\\workflows\\default.yml",
|
||||
"ToolTip": "C:\\Users\\clive\\source\\repos\\rokoh\\.gitea\\workflows\\default.yml",
|
||||
"RelativeToolTip": ".gitea\\workflows\\default.yml",
|
||||
"ViewState": "AQIAAA8AAAAAAAAAAAAcwCMAAAASAAAA",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003775|",
|
||||
"WhenOpened": "2024-05-06T12:33:48.592Z",
|
||||
"EditorCaption": ""
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:130:0:{1fc202d4-d401-403c-9834-5b218574bb67}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:0:0:{1c4feeaa-4718-4aa9-859d-94ce25d182ba}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:128:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:129:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
|
||||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 0,
|
||||
"Title": "_Layout.cshtml",
|
||||
"DocumentMoniker": "C:\\Users\\clive\\source\\repos\\rokoh\\rokoh\\Pages\\Shared\\_Layout.cshtml",
|
||||
"RelativeDocumentMoniker": "rokoh\\Pages\\Shared\\_Layout.cshtml",
|
||||
"ToolTip": "C:\\Users\\clive\\source\\repos\\rokoh\\rokoh\\Pages\\Shared\\_Layout.cshtml",
|
||||
"RelativeToolTip": "rokoh\\Pages\\Shared\\_Layout.cshtml",
|
||||
"ViewState": "AQIAAAYAAAAAAAAAAAAAABoAAAAdAAAA",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000759|",
|
||||
"WhenOpened": "2024-05-19T03:21:15.576Z",
|
||||
"EditorCaption": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
46
rokoh/.gitea/workflows/default.yml
Normal file
46
rokoh/.gitea/workflows/default.yml
Normal file
@@ -0,0 +1,46 @@
|
||||
name: Gitea CI/CD
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Login to Docker registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
registry: https://registry.rokoh.com
|
||||
|
||||
- name: Build Docker image
|
||||
run: docker build . -t rokoh:latest -f rokoh/Dockerfile
|
||||
|
||||
- name: Tag Docker image
|
||||
run: docker tag rokoh:latest registry.rokoh.com/rokoh:latest
|
||||
|
||||
- name: Push Docker image to registry
|
||||
run: docker push registry.rokoh.com/rokoh:latest
|
||||
|
||||
- name: SSH Deploy
|
||||
uses: appleboy/ssh-action@v1.0.3
|
||||
with:
|
||||
host: 10.1.1.90
|
||||
username: ${{ secrets.SERVER_USERNAME }}
|
||||
password: ${{ secrets.SERVER_PASSWORD }}
|
||||
script: |
|
||||
if docker ps -a --format '{{.Names}}' | grep -q rokoh; then
|
||||
docker stop rokoh || true
|
||||
docker rm rokoh || true
|
||||
docker image rm rokoh:latest
|
||||
fi
|
||||
docker login registry.rokoh.com -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} && docker image pull registry.rokoh.com/rokoh:latest
|
||||
docker run -d -p 2000:80 --restart=always --name rokoh registry.rokoh.com/rokoh
|
||||
docker image prune -f
|
||||
|
||||
- name: Prune Docker resources
|
||||
run: docker system prune -af --volumes
|
||||
@@ -7,6 +7,8 @@
|
||||
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
|
||||
<link rel="stylesheet" href="~/rokoh.styles.css" asp-append-version="true" />
|
||||
<link rel="icon" type="image/x-icon" href="~/img/favicon.ico">
|
||||
<script defer src="https://analytics.rokoh.com/script.js" data-website-id="52332c23-fdb0-4515-885e-daddf653905a"></script>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
@@ -22,6 +24,9 @@
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" asp-area="" asp-page="/Index">Home</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" href="https://store.rokoh.com">Store</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -35,7 +40,7 @@
|
||||
|
||||
<footer class="border-top footer text-muted">
|
||||
<div class="container">
|
||||
© 2023 - rokoh
|
||||
© 2024 - rokoh
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -15,7 +15,7 @@ using System.Reflection;
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("rokoh")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+39308a68156b9da8ef59719de7e433b3b7a86d5c")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+b897f1d24eebf11bc11004eee7df30a2ff36cd1a")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("rokoh")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("rokoh")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
@@ -1 +1 @@
|
||||
a91be419ff338d6da03a1689dec4a3671a7b6d7628ff7122ff34565bdaa3d613
|
||||
b8d820e06244cb688cb06417a249b8db48dfa91e4c0d94c63cb4b24e859665d2
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -173,7 +173,7 @@
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.204\\RuntimeIdentifierGraph.json"
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.205\\RuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "D39OiO7JQ8vF6kq3f7g5n5ghtL7CT8PA8v9NlBqYvr1uP9OvcUjJc+jdZ3kTUSa5Gdu8CZnALoGomgVi099XVQ==",
|
||||
"dgSpecHash": "DBItZC551oCBLSnIR4C60GteblH1k6R61vAYIHSh85NIQi0e1N2utnteiuwa1+bqZZwiDsV33reVW6oEyYtIFA==",
|
||||
"success": true,
|
||||
"projectFilePath": "C:\\Users\\clive\\source\\repos\\rokoh\\rokoh\\rokoh.csproj",
|
||||
"expectedPackageFiles": [
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.204\\RuntimeIdentifierGraph.json"
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.205\\RuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
BIN
rokoh/wwwroot/img/favicon.ico
Normal file
BIN
rokoh/wwwroot/img/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
Reference in New Issue
Block a user