From b25205ccd677088f9202750eb773ce6105d0933f Mon Sep 17 00:00:00 2001 From: luocai Date: Fri, 8 Mar 2024 12:21:39 +0800 Subject: [PATCH] add gitea runner config. --- .gitea/workflows/deploy.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .gitea/workflows/deploy.yaml diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..2a3e41a --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,20 @@ +name: Deploy Docker Images +run-name: build and deploy docker image to server. +on: [push] +jobs: + Docusaurus build and Server deploy: + runs-on: ubuntu-latest + steps: + - name: Check out dockerfiles. + uses: actions/checkout@v4 + - name: Get changed files + id: changed-dockerfiles + uses: tj-actions/changed-files@v40 + with: + files: | + **.dockerfile + - name: Build docker image and deploy. + run: | + for file in ${{ steps.changed-dockerfiles.outputs.all_changed_files }}; do + echo "${file} changed." + done