docker: Test build
This commit is contained in:
parent
6c688c8996
commit
6860a49c14
27
.gitea/workflows/build.yml
Normal file
27
.gitea/workflows/build.yml
Normal file
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user