Initial commit

This commit is contained in:
wsc-admin
2026-04-02 19:35:55 +09:00
commit dd06a27079
6 changed files with 52 additions and 0 deletions

24
.gitea/workflows/ci.yaml Normal file
View File

@@ -0,0 +1,24 @@
name: Build and deploy
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build Docker image
run: DOCKER_BUILDKIT=0 docker build --network=wsc2026-infra_wsc-network . --tag git.webtech.worldskillskorea.io/${{ github.repository }}:latest
- name: Login to registry
run: echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login git.webtech.worldskillskorea.io -u ${{ secrets.REGISTRY_USERNAME }} --password-stdin
- name: Push image
run: docker push git.webtech.worldskillskorea.io/${{ github.repository }}:latest
- name: Deploy
run: |
curl -s -X POST https://admin.webtech.worldskillskorea.io/api/deploy \
-H "Authorization: Bearer ${{ secrets.PULLDECK_TOKEN }}" \
-H "Content-Type: application/json" \
-d '{"image":"git.webtech.worldskillskorea.io/${{ github.repository }}:latest"}'

5
.gitignore vendored Normal file
View File

@@ -0,0 +1,5 @@
/vendor/
/node_modules/
.env
.phpunit.result.cache
storage/*.key

5
Dockerfile Normal file
View File

@@ -0,0 +1,5 @@
FROM webdevops/php-nginx-dev:8.4
COPY . /app
WORKDIR /app
RUN composer install --no-dev --optimize-autoloader
EXPOSE 80

3
README.md Normal file
View File

@@ -0,0 +1,3 @@
# Laravel App
PHP + Nginx all-in-one. Replace with full Laravel project for actual use.

13
composer.json Normal file
View File

@@ -0,0 +1,13 @@
{
"name": "wsc2026/laravel-app",
"type": "project",
"require": {
"php": "^8.2",
"laravel/framework": "^11.0"
},
"autoload": {
"psr-4": {
"App\\": "app/"
}
}
}

2
public/index.php Normal file
View File

@@ -0,0 +1,2 @@
<?php
echo "Laravel App - replace with full Laravel project";