Compare commits
36 Commits
39308a6815
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 49999f16b8 | |||
| 5cd50fde6e | |||
| 6d2a62d185 | |||
| 1865652e5b | |||
| fd366079b9 | |||
| 5516665824 | |||
|
|
df543cc239 | ||
|
|
b897f1d24e | ||
| 45444574db | |||
| efb4b78d61 | |||
| 6b78bc201b | |||
| c27fbb9e6f | |||
| 48709cb9c8 | |||
| cb8434e529 | |||
| 3797191107 | |||
|
|
499cd16190 | ||
|
|
6ebdadd059 | ||
|
|
06feaf97ec | ||
|
|
a7045b7d3e | ||
|
|
63111bb737 | ||
|
|
3ffa1bcedc | ||
|
|
f628e0d518 | ||
|
|
1b63061db5 | ||
|
|
f11d6f6e2e | ||
|
|
11edae272f | ||
|
|
6046ac4e71 | ||
|
|
8dafb6c804 | ||
|
|
178a563a30 | ||
|
|
3bd022b754 | ||
|
|
d2f13bfd2c | ||
|
|
2ec1a60e6a | ||
|
|
035818ec16 | ||
|
|
9b6d863387 | ||
|
|
bfcb933f82 | ||
|
|
9c8491355f | ||
|
|
6fb17b550d |
@@ -11,29 +11,36 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Login to Docker registry
|
- name: Login to Docker registry
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
registry: https://registry.rokoh.com
|
registry: https://registry.rokoh.com
|
||||||
|
|
||||||
- name: Build Docker image
|
- name: Build Docker image
|
||||||
run: docker build -t registry.rokoh.com/rokoh:${{ github.sha }} .
|
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
|
- name: Push Docker image to registry
|
||||||
run: docker push registry.rokoh.com/rokoh:${{ github.sha }}
|
run: docker push registry.rokoh.com/rokoh:latest
|
||||||
|
|
||||||
deploy:
|
- name: SSH Deploy
|
||||||
runs-on: ubuntu-latest
|
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
|
||||||
|
|
||||||
needs: build
|
- name: Prune Docker resources
|
||||||
|
run: docker system prune -af --volumes
|
||||||
steps:
|
|
||||||
- name: Install Docker
|
|
||||||
uses: docker/setup-action@v2
|
|
||||||
|
|
||||||
- name: Pull Docker image from registry
|
|
||||||
run: docker pull registry.rokoh.com/rokoh:${{ github.sha }}
|
|
||||||
|
|
||||||
- name: Run Docker container
|
|
||||||
run: docker run -d -p 6000:80 registry.rokoh.com/rokoh:${{ github.sha }}
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,7 +1,12 @@
|
|||||||
{
|
{
|
||||||
"Version": 1,
|
"Version": 1,
|
||||||
"WorkspaceRootPath": "C:\\Users\\clive\\source\\repos\\rokoh\\",
|
"WorkspaceRootPath": "C:\\Users\\clive\\source\\repos\\rokoh\\",
|
||||||
"Documents": [],
|
"Documents": [
|
||||||
|
{
|
||||||
|
"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": [
|
"DocumentGroupContainers": [
|
||||||
{
|
{
|
||||||
"Orientation": 0,
|
"Orientation": 0,
|
||||||
@@ -9,7 +14,7 @@
|
|||||||
"DocumentGroups": [
|
"DocumentGroups": [
|
||||||
{
|
{
|
||||||
"DockedWidth": 200,
|
"DockedWidth": 200,
|
||||||
"SelectedChildIndex": -1,
|
"SelectedChildIndex": 6,
|
||||||
"Children": [
|
"Children": [
|
||||||
{
|
{
|
||||||
"$type": "Bookmark",
|
"$type": "Bookmark",
|
||||||
@@ -18,6 +23,35 @@
|
|||||||
{
|
{
|
||||||
"$type": "Bookmark",
|
"$type": "Bookmark",
|
||||||
"Name": "ST:129:0:{1fc202d4-d401-403c-9834-5b218574bb67}"
|
"Name": "ST:129:0:{1fc202d4-d401-403c-9834-5b218574bb67}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$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="~/lib/bootstrap/dist/css/bootstrap.min.css" />
|
||||||
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
|
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
|
||||||
<link rel="stylesheet" href="~/rokoh.styles.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>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
@@ -22,6 +24,9 @@
|
|||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link text-dark" asp-area="" asp-page="/Index">Home</a>
|
<a class="nav-link text-dark" asp-area="" asp-page="/Index">Home</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link text-dark" href="https://store.rokoh.com">Store</a>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -35,7 +40,7 @@
|
|||||||
|
|
||||||
<footer class="border-top footer text-muted">
|
<footer class="border-top footer text-muted">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
© 2023 - rokoh
|
© 2024 - rokoh
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</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.AssemblyCompanyAttribute("rokoh")]
|
||||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+f5bf17187655b57686196a9b000d0ca591492145")]
|
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+b897f1d24eebf11bc11004eee7df30a2ff36cd1a")]
|
||||||
[assembly: System.Reflection.AssemblyProductAttribute("rokoh")]
|
[assembly: System.Reflection.AssemblyProductAttribute("rokoh")]
|
||||||
[assembly: System.Reflection.AssemblyTitleAttribute("rokoh")]
|
[assembly: System.Reflection.AssemblyTitleAttribute("rokoh")]
|
||||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
b67df968282f6cc9d739f245ffa0584d9f0e4435964ede64714b38407620f478
|
b8d820e06244cb688cb06417a249b8db48dfa91e4c0d94c63cb4b24e859665d2
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -15,7 +15,7 @@ using System.Reflection;
|
|||||||
[assembly: System.Reflection.AssemblyCompanyAttribute("rokoh")]
|
[assembly: System.Reflection.AssemblyCompanyAttribute("rokoh")]
|
||||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
|
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
|
||||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+9b1baedfa7df193cff23d9e821c0273b61097a86")]
|
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+39308a68156b9da8ef59719de7e433b3b7a86d5c")]
|
||||||
[assembly: System.Reflection.AssemblyProductAttribute("rokoh")]
|
[assembly: System.Reflection.AssemblyProductAttribute("rokoh")]
|
||||||
[assembly: System.Reflection.AssemblyTitleAttribute("rokoh")]
|
[assembly: System.Reflection.AssemblyTitleAttribute("rokoh")]
|
||||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
f9b5bed55f85ec1460792dbb9cc4032350c7ed4f564a3960ef4f5928410477f0
|
68c024759fab8203ad6b7f34da4f79af3907ef5622dec2c2c75868cf7a85ef38
|
||||||
|
|||||||
@@ -173,7 +173,7 @@
|
|||||||
"privateAssets": "all"
|
"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,
|
"version": 2,
|
||||||
"dgSpecHash": "D39OiO7JQ8vF6kq3f7g5n5ghtL7CT8PA8v9NlBqYvr1uP9OvcUjJc+jdZ3kTUSa5Gdu8CZnALoGomgVi099XVQ==",
|
"dgSpecHash": "DBItZC551oCBLSnIR4C60GteblH1k6R61vAYIHSh85NIQi0e1N2utnteiuwa1+bqZZwiDsV33reVW6oEyYtIFA==",
|
||||||
"success": true,
|
"success": true,
|
||||||
"projectFilePath": "C:\\Users\\clive\\source\\repos\\rokoh\\rokoh\\rokoh.csproj",
|
"projectFilePath": "C:\\Users\\clive\\source\\repos\\rokoh\\rokoh\\rokoh.csproj",
|
||||||
"expectedPackageFiles": [
|
"expectedPackageFiles": [
|
||||||
|
|||||||
@@ -74,7 +74,7 @@
|
|||||||
"privateAssets": "all"
|
"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