add docker build
All checks were successful
GitHub Pages / deploy (push) Successful in 1m24s

This commit is contained in:
lukas-heiligenbrunner 2024-05-05 21:28:19 +02:00
parent 8432ba06b5
commit f4a9899342
2 changed files with 16 additions and 0 deletions

View File

@ -24,3 +24,16 @@ jobs:
- name: Build - name: Build
run: hugo --minify run: hugo --minify
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
registry: tea.heili.eu
username: lukas
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push Docker image
run: |
docker build -t tea.heili.eu/lukas/myhugotest:latest .
docker push tea.heili.eu/lukas/myhugotest:latest

3
Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM nginx:latest
COPY public/ /usr/share/nginx/html/