Initial commit
This commit is contained in:
24
.gitea/workflows/ci.yaml
Normal file
24
.gitea/workflows/ci.yaml
Normal 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
5
.gitignore
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
/vendor/
|
||||
/node_modules/
|
||||
.env
|
||||
.phpunit.result.cache
|
||||
storage/*.key
|
||||
5
Dockerfile
Normal file
5
Dockerfile
Normal 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
3
README.md
Normal 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
13
composer.json
Normal 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
2
public/index.php
Normal file
@@ -0,0 +1,2 @@
|
||||
<?php
|
||||
echo "Laravel App - replace with full Laravel project";
|
||||
Reference in New Issue
Block a user