From 261cfedd06ceebf1bd43406c00f8fe19b2568323 Mon Sep 17 00:00:00 2001 From: ship <543999860@qq.com> Date: Fri, 18 Apr 2025 10:32:24 +0800 Subject: [PATCH] a --- .gitea/workflows/gitee-ci.yaml | 33 +++++++++++++++++++++++++++++++++ .gitignore | 30 ++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 .gitea/workflows/gitee-ci.yaml create mode 100644 .gitignore diff --git a/.gitea/workflows/gitee-ci.yaml b/.gitea/workflows/gitee-ci.yaml new file mode 100644 index 0000000..ff724d1 --- /dev/null +++ b/.gitea/workflows/gitee-ci.yaml @@ -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 "开发部署" \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7afeaa6 --- /dev/null +++ b/.gitignore @@ -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