poire.dev/.forgejo/workflows/website.yaml
Aram Peres d7c293dd42
Some checks failed
/ build (push) Failing after 34s
Try to specify options
2025-08-23 02:05:20 -04:00

33 lines
962 B
YAML

on:
push:
branches:
- master
paths:
- 'website/**'
- '**/website.yaml'
jobs:
build:
runs-on: docker
container:
image: docker:latest
options: --privileged -v /var/run/docker.sock:/var/run/docker.sock
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v1
- 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 }}