treetrail-backend/.forgejo/workflows/build.yaml
phil 735ad5dd9c
Some checks failed
/ build (push) Failing after 25s
CI: improve workflow
2024-10-27 13:35:16 +01:00

36 lines
862 B
YAML

on:
push:
jobs:
build:
runs-on: container
container:
image: tiptop:5000/python-ci
volumes:
- "/root/.cache/uv:uv_cache"
services:
treetrail-database:
image: treetrail-database
steps:
- uses: actions/checkout@v4
- name: Create venv
run: uv venv
- name: Install dependencies
run: uv sync
- name: Run basic test (bootstrap)
run: .venv/bin/pytest -s tests/basic.py
- name: Build container
uses: actions/buildah-build@v1
with:
image: treetrail-backend
#tags: foo # v1 ${{ github.sha }}
containerfiles: |
./Containerfile.for_runner
- uses: actions/push-to-registry@v2
with:
registry: "docker://${{ vars.REPOSITORY }}"
image: treetrail-backend
tags: latest