commit dd06a27079dd92b52eddb766bf8a16b85a2e7b22 Author: wsc-admin Date: Thu Apr 2 19:35:55 2026 +0900 Initial commit diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml new file mode 100644 index 0000000..80fcc00 --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -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"}' \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..441d316 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +/vendor/ +/node_modules/ +.env +.phpunit.result.cache +storage/*.key \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2f05006 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM webdevops/php-nginx-dev:8.4 +COPY . /app +WORKDIR /app +RUN composer install --no-dev --optimize-autoloader +EXPOSE 80 \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..7a0fe98 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Laravel App + +PHP + Nginx all-in-one. Replace with full Laravel project for actual use. \ No newline at end of file diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..3c0499d --- /dev/null +++ b/composer.json @@ -0,0 +1,13 @@ +{ + "name": "wsc2026/laravel-app", + "type": "project", + "require": { + "php": "^8.2", + "laravel/framework": "^11.0" + }, + "autoload": { + "psr-4": { + "App\\": "app/" + } + } +} \ No newline at end of file diff --git a/public/index.php b/public/index.php new file mode 100644 index 0000000..6ab7244 --- /dev/null +++ b/public/index.php @@ -0,0 +1,2 @@ +