This commit is contained in:
42
rokoh/.gitea/workflows/default.yml
Normal file
42
rokoh/.gitea/workflows/default.yml
Normal file
@@ -0,0 +1,42 @@
|
||||
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@v1
|
||||
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
|
||||
@@ -22,6 +22,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>
|
||||
|
||||
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+06feaf97ec04f89c079108f748956dd35a790e68")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("rokoh")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("rokoh")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
@@ -1 +1 @@
|
||||
a91be419ff338d6da03a1689dec4a3671a7b6d7628ff7122ff34565bdaa3d613
|
||||
92b4f1f2e8110bf6d6885c7ce45d6b0017ad58a0e26bed603915647a90d98f2b
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user