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