woodburn/.gitea/workflows/build.yml
Nathan Woodburn 31d54a0e99
Some checks failed
Build Docker / Build Docker (push) Failing after 6s
OnPush / CheckFiles (push) Successful in 6s
docker: Test apt 2
2023-07-27 22:23:41 +10:00

31 lines
858 B
YAML

name: Build Docker
run-name: Build Docker
on: [push]
jobs:
Build Docker:
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 : |
cat /etc/os-release
apt -y install docker-ce docker-ce-cli containerd.io
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