Dockerfiles/.gitea/workflows/deploy.yaml

21 lines
604 B
YAML
Raw Normal View History

2024-03-08 12:21:39 +08:00
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
2024-03-08 12:25:03 +08:00
uses: tj-actions/changed-files@v42
2024-03-08 12:21:39 +08:00
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