a
This commit is contained in:
commit
261cfedd06
33
.gitea/workflows/gitee-ci.yaml
Normal file
33
.gitea/workflows/gitee-ci.yaml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
name: test
|
||||||
|
run-name: test1
|
||||||
|
on: [push]
|
||||||
|
jobs:
|
||||||
|
test-action:
|
||||||
|
runs-on: [ubuntu-latest]
|
||||||
|
steps:
|
||||||
|
- name: 创建密钥
|
||||||
|
run: |
|
||||||
|
mkdir -p ~/.ssh
|
||||||
|
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
|
||||||
|
chmod 600 ~/.ssh/id_ed25519
|
||||||
|
ssh-keyscan -t ed25519 -H ${{ vars.DEV_HOSTS }} >> ~/.ssh/known_hosts
|
||||||
|
- name: 部署composer
|
||||||
|
run: |
|
||||||
|
ssh ${{ vars.DEV_USERNAME }}@${{ vars.DEV_HOSTS }} "
|
||||||
|
docker exec -it php '
|
||||||
|
if [[ ! -e /usr/local/sbin/composer ]];then
|
||||||
|
curl -o /usr/local/sbin/composer https://getcomposer.org/download/2.8.2/composer.phar \
|
||||||
|
&& chmod 777 /usr/local/sbin/composer
|
||||||
|
fi
|
||||||
|
/usr/local/sbin/composer --version'
|
||||||
|
"
|
||||||
|
|
||||||
|
|
||||||
|
- name: message
|
||||||
|
run: echo ${{ github.event.head_commit.message }}
|
||||||
|
- name: 部署预备服务器
|
||||||
|
if: ${{ contains(github.event.head_commit.message,'[uat]') }}
|
||||||
|
run: echo "预上线部署1"
|
||||||
|
- name: 部署开发服务器
|
||||||
|
if: ${{ contains(github.event.head_commit.message,'[dev]') }}
|
||||||
|
run: echo "开发部署"
|
||||||
30
.gitignore
vendored
Normal file
30
.gitignore
vendored
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
/node_modules
|
||||||
|
/public/hot
|
||||||
|
/public/storage
|
||||||
|
/storage/*.key
|
||||||
|
/vendor
|
||||||
|
.env
|
||||||
|
composer.lock
|
||||||
|
.phpunit.result.cache
|
||||||
|
Homestead.json
|
||||||
|
Homestead.yaml
|
||||||
|
npm-debug.log
|
||||||
|
yarn-error.log
|
||||||
|
public/e17/
|
||||||
|
public/playback/
|
||||||
|
public/avatar
|
||||||
|
public/zipavatar
|
||||||
|
public/school
|
||||||
|
public/file
|
||||||
|
public/excel
|
||||||
|
public/logs
|
||||||
|
public/upload
|
||||||
|
app/Http/Controllers/Api/php.txt
|
||||||
|
public/file/student_data_file/2023-06-20-05-14-32.csv
|
||||||
|
public/file/student_data_file/
|
||||||
|
.idea/*
|
||||||
|
nginx.htaccess
|
||||||
|
.gitkeep
|
||||||
|
storage/api-docs/
|
||||||
|
archives/*.zip
|
||||||
|
*.tar
|
||||||
Loading…
Reference in New Issue
Block a user