Comment: Trymymenu publish.
This commit is contained in:
46
default.yaml
Normal file
46
default.yaml
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 trymymenu:latest -f trymymenu/Dockerfile
|
||||
|
||||
- name: Tag Docker image
|
||||
run: docker tag trymymenu:latest registry.rokoh.com/trymymenu:latest
|
||||
|
||||
- name: Push Docker image to registry
|
||||
run: docker push registry.rokoh.com/trymymenu: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 trymymenu; then
|
||||
docker stop trymymenu || true
|
||||
docker rm trymymenu || true
|
||||
docker image rm trymymenu:latest
|
||||
fi
|
||||
docker login registry.rokoh.com -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} && docker image pull registry.rokoh.com/trymymenu:latest
|
||||
docker run -d -p 7000:80 --restart=always --name trymymenu registry.rokoh.com/trymymenu
|
||||
docker image prune -f
|
||||
|
||||
- name: Prune Docker resources
|
||||
run: docker system prune -af --volumes
|
||||
@@ -3,7 +3,14 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.6.33723.286
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "trymymenu", "trymymenu\trymymenu.csproj", "{873B7DF2-9370-4993-8F3E-9A492DBC534B}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "trymymenu", "trymymenu\trymymenu.csproj", "{873B7DF2-9370-4993-8F3E-9A492DBC534B}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".gitea", ".gitea", "{33C9E016-19ED-49DC-8180-176D9C819CFC}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflow", "workflow", "{26FF5D70-AD47-4560-A6AE-3337D6B7465A}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
default.yaml = default.yaml
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
@@ -19,6 +26,9 @@ Global
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(NestedProjects) = preSolution
|
||||
{26FF5D70-AD47-4560-A6AE-3337D6B7465A} = {33C9E016-19ED-49DC-8180-176D9C819CFC}
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {6F5EE099-1B83-4334-90D4-761B6F4EC754}
|
||||
EndGlobalSection
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
<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="~/trymymenu.styles.css" asp-append-version="true" />
|
||||
<link rel="icon" type="image/x-icon" href="~/img/favicon.ico">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
@@ -22,6 +23,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://app.trymymenu.com">Application</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -35,7 +39,7 @@
|
||||
|
||||
<footer class="border-top footer text-muted">
|
||||
<div class="container">
|
||||
© 2023 - trymymenu
|
||||
© 2024 - trymymenu
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user