adding gitea actions
Some checks failed
Deploy Hugo site to Prod / Build Container (push) Failing after 26s

This commit is contained in:
Andy Pack 2024-07-19 20:25:59 +01:00
parent e212dec605
commit b598050178
Signed by: sarsoo
GPG Key ID: A55BA3536A5E0ED7

View File

@ -0,0 +1,34 @@
name: Deploy Hugo site to Prod
on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
name: Build Container
steps:
- uses: actions/checkout@v4
with:
github-server-url: https://gitea.sheep-ghoul.ts.net
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
registry: gitea.sheep-ghoul.ts.net
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build Container
uses: docker/build-push-action@v2
with:
push: true
tags: gitea.sheep-ghoul.ts.net/sarsoo/sarsooxyz.hugo:latest
file: Dockerfile.pub