myhugotest/.gitea/workflows/myaction.yaml

40 lines
972 B
YAML
Raw Permalink Normal View History

2024-05-05 19:07:30 +00:00
name: GitHub Pages
on:
push:
branches:
- master # Set a branch to deploy
2024-05-05 19:01:35 +00:00
jobs:
2024-05-05 19:07:30 +00:00
deploy:
runs-on: ubuntu-22.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
2024-05-05 19:01:35 +00:00
steps:
2024-05-05 19:07:30 +00:00
- uses: actions/checkout@v4
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.119.0'
# extended: true
- name: Build
run: hugo --minify
2024-05-05 19:28:19 +00:00
- 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