blog/.gitea/workflows/1_build_hugo_image.yml
d3vyce df1ff04c1b
Some checks failed
Build Blog Docker Image / build docker (push) Waiting to run
Build Hugo Docker Image / build docker (push) Has been cancelled
bump: blowfish/hugo version
2024-04-30 23:55:44 +02:00

33 lines
818 B
YAML

name: Build Hugo Docker Image
on:
push:
jobs:
build docker:
runs-on: linux_amd
steps:
- name: checkout code
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker registry
uses: docker/login-action@v2
with:
registry: git.d3vyce.fr
username: ${{ github.actor }}
password: ${{ secrets.GIT_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
build-args:
HUGO_VERSION=v0.125.4
file: ./hugo.Dockerfile
platforms: linux/amd64
push: true
tags: git.d3vyce.fr/d3vyce/hugo:latest