Migrate CI to Forgejo Actions

This commit is contained in:
Marko Korhonen 2024-02-24 15:29:04 +02:00
parent 72b25e2b0e
commit 5aa05eeec6
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890
3 changed files with 18 additions and 13 deletions

View file

@ -0,0 +1,18 @@
on: [push]
jobs:
build_image:
runs-on: docker
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker registry (Forgejo)
uses: docker/login-action@v3
with:
registry: git.korhonen.cc
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push image
uses: docker/build-push-action@v5
with:
push: true
tags: git.korhonen.cc/functionalhacker/hugo-asciidoc-docker-ci:latest

View file

@ -1,11 +0,0 @@
steps:
build:
image: woodpeckerci/plugin-docker-buildx
settings:
repo: git.korhonen.cc/functionalhacker/hugo-asciidoc-docker-ci
registry: https://git.korhonen.cc
username: FunctionalHacker
password:
from_secret: registry_password
tags: latest
platforms: linux/amd64

View file

@ -1,7 +1,5 @@
= Docker image to build Hugo sites in a CI environment = Docker image to build Hugo sites in a CI environment
image::https://ci.korhonen.cc/api/badges/17/status.svg[link="https://ci.korhonen.cc/repos/17"]
I created this image because all of the current options for I created this image because all of the current options for
building my Hugo sites in a CI environment were either missing building my Hugo sites in a CI environment were either missing
some dependencies needed for my site or the contained Hugo version some dependencies needed for my site or the contained Hugo version