website/.forgejo/workflows/build.yaml

18 lines
419 B
YAML
Raw Permalink Normal View History

name: build
2023-12-03 23:19:00 -06:00
on:
push:
branches:
2024-02-25 17:58:27 -06:00
- dev
2023-12-03 23:19:00 -06:00
jobs:
2024-02-25 18:24:09 -06:00
build:
2023-12-03 23:19:00 -06:00
runs-on: docker
2023-12-10 01:16:34 -06:00
container:
2023-12-10 19:58:04 -06:00
image: nseguin42/forgejo-runner:ubuntu
env:
DOCKER_HOST: tcp://0.0.0.0:2375
2023-12-10 01:16:34 -06:00
steps:
- uses: actions/checkout@v4
- name: docker build
2024-02-25 20:15:02 -06:00
run: docker build -t nseguin42/website:${{ github.sha }} .
- name: cleanup old images
run: docker image prune -f --filter "until=24h"