treetrail-backend/.forgejo/workflows/build.yaml

37 lines
873 B
YAML
Raw Normal View History

2024-10-25 14:03:43 +02:00
on:
push:
2024-10-25 14:03:43 +02:00
jobs:
build:
runs-on: container
container:
2024-10-27 02:09:13 +02:00
image: tiptop:5000/treetrail-backend-ci
2024-10-25 14:03:43 +02:00
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:
2024-10-27 02:09:13 +02:00
image: treetrail-backend
2024-10-25 14:03:43 +02:00
#tags: foo # v1 ${{ github.sha }}
containerfiles: |
./Containerfile.for_runner
2024-10-25 14:03:43 +02:00
- uses: actions/push-to-registry@v2
with:
registry: "docker://${{ vars.REPOSITORY }}"
2024-10-27 02:09:13 +02:00
image: treetrail-backend
2024-10-25 14:03:43 +02:00
tags: latest