diff --git a/.forgejo/workflows/build_image.yaml b/.forgejo/workflows/build_image.yaml new file mode 100644 index 0000000..b8a4f83 --- /dev/null +++ b/.forgejo/workflows/build_image.yaml @@ -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 diff --git a/.woodpecker.yml b/.woodpecker.yml deleted file mode 100644 index 64af457..0000000 --- a/.woodpecker.yml +++ /dev/null @@ -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 diff --git a/README.adoc b/README.adoc index 69bbdc0..784a3a5 100644 --- a/README.adoc +++ b/README.adoc @@ -1,7 +1,5 @@ = 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 building my Hugo sites in a CI environment were either missing some dependencies needed for my site or the contained Hugo version