commit 4b19b6666aaeeca41ef99da7eaf86df58bdacb74 Author: rainofdestiny Date: Thu Mar 26 22:13:35 2026 +0700 feat: initial landing page placeholder diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml new file mode 100644 index 0000000..00b8193 --- /dev/null +++ b/.forgejo/workflows/deploy.yml @@ -0,0 +1,39 @@ +name: Deploy + +on: + push: + branches: [master] + +jobs: + build-and-push: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Login to registry + uses: docker/login-action@v3 + with: + registry: git.walava.io + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASSWORD }} + + - name: Build and push + uses: docker/build-push-action@v5 + with: + push: true + tags: git.walava.io/jack/walava-web:latest + + deploy: + needs: build-and-push + runs-on: ubuntu-latest + steps: + - name: Deploy via SSH + uses: appleboy/ssh-action@v1 + with: + host: 87.249.49.32 + username: deploy + key: ${{ secrets.SSH_PRIVATE_KEY }} + script: | + cd /opt/services + docker compose pull walava-web + docker compose up -d walava-web diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7ed759f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM nginx:alpine +COPY nginx.conf /etc/nginx/conf.d/default.conf +COPY index.html /usr/share/nginx/html/index.html diff --git a/index.html b/index.html new file mode 100644 index 0000000..55a213f --- /dev/null +++ b/index.html @@ -0,0 +1,89 @@ + + + + + + Walava + + + +
+
+ +
Coming soon
+
+
+ + diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..dc9ad56 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,9 @@ +server { + listen 80; + server_name _; + root /usr/share/nginx/html; + index index.html; + location / { + try_files $uri $uri/ /index.html; + } +}