From 6860a49c1411d67ae38f05e3125445ff8ee37c6a Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Thu, 27 Jul 2023 21:59:28 +1000 Subject: [PATCH] docker: Test build --- .gitea/workflows/build.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .gitea/workflows/build.yml diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..81a3db2 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,27 @@ +name: Build Docker +run-name: Build Docker +on: [push] + +jobs: + CheckFiles: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Check files + run: | + for file in *.html; do + if grep -q "$file" "$file"; then + echo "File $file contains canonical tag with .html!" + exit 1 + else + echo "File $file is correct!" + fi + done + - name: Build Docker image + run : | + echo "${{ secrets.DOCKERGIT_TOKEN }}" | docker login git.woodburn.au -u nathanwoodburn --password-stdin + docker build -t woodburn-website:latest . + docker push git.woodburn.au/nathanwoodburn/woodburn-website:latest + +