website/.forgejo/workflows/build.yaml
Nick Seguin 1d1aefcd96
All checks were successful
build / build (push) Successful in 41s
cleanup old images after build
2024-02-25 20:15:02 -06:00

18 lines
419 B
YAML

name: build
on:
push:
branches:
- dev
jobs:
build:
runs-on: docker
container:
image: nseguin42/forgejo-runner:ubuntu
env:
DOCKER_HOST: tcp://0.0.0.0:2375
steps:
- uses: actions/checkout@v4
- name: docker build
run: docker build -t nseguin42/website:${{ github.sha }} .
- name: cleanup old images
run: docker image prune -f --filter "until=24h"