woodburn/.gitea/workflows/build.yml
Nathan Woodburn f317cd7759
Some checks failed
OnPush / CheckFiles (push) Successful in 8s
Build Docker / CheckFiles (push) Failing after 6s
docker: Try apt install
2023-07-27 22:00:44 +10:00

29 lines
797 B
YAML

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 : |
apt install docker.io -y
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