sarsooxyz.hugo/.gitea/workflows/docker.yml
Andy Pack f04050aebf
All checks were successful
Deploy Hugo site to Prod / Build Container (push) Successful in 21s
adding context fix
2024-07-19 20:29:24 +01:00

36 lines
941 B
YAML

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
context: .