poire.dev/.forgejo/workflows/website.yaml
Aram Peres 15d67bd803
Some checks failed
/ build (push) Failing after 15s
Try to use dind
2025-08-23 02:26:27 -04:00

35 lines
985 B
YAML

on:
push:
branches:
- master
paths:
- 'website/**'
- '**/website.yaml'
jobs:
build:
runs-on: docker
env:
DOCKER_HOST: tcp://localhost:2375
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver-opts: image=moby/buildkit:latest
install: true
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: actions
password: ${{ secrets.FORGEJO_TOKEN }}
- name: Extract the tag
id: extract_tag
run: echo "::set-output name=tag::$(echo ${{ env.FORGEJO_SHA }} | cut -c1-8)"
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
push: true
context: website
file: Dockerfile
tags: git.poire.dev/aramperes/poire.dev:${{ steps.extract_tag.outputs.tag }}