64e60dc577
Unit Tests / test (push) Failing after 9m3s
- test.yml: run unit tests on every push (all branches) - release.yml: build and push pic-api + pic-webui images on v*.*.* tags Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
66 lines
1.6 KiB
YAML
66 lines
1.6 KiB
YAML
name: Release — Build and Push Images
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*.*.*"
|
|
|
|
jobs:
|
|
build-api:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Docker login to Gitea registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: git.pic.ngo
|
|
username: ${{ secrets.REGISTRY_USER }}
|
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
|
|
|
- name: Docker meta (api)
|
|
id: meta-api
|
|
uses: docker/metadata-action@v5
|
|
with:
|
|
images: git.pic.ngo/roof/pic-api
|
|
tags: |
|
|
type=raw,value=latest
|
|
type=ref,event=tag
|
|
|
|
- name: Build and push pic-api
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: ./api
|
|
push: true
|
|
tags: ${{ steps.meta-api.outputs.tags }}
|
|
|
|
build-webui:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Docker login to Gitea registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: git.pic.ngo
|
|
username: ${{ secrets.REGISTRY_USER }}
|
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
|
|
|
- name: Docker meta (webui)
|
|
id: meta-webui
|
|
uses: docker/metadata-action@v5
|
|
with:
|
|
images: git.pic.ngo/roof/pic-webui
|
|
tags: |
|
|
type=raw,value=latest
|
|
type=ref,event=tag
|
|
|
|
- name: Build and push pic-webui
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: ./webui
|
|
push: true
|
|
tags: ${{ steps.meta-webui.outputs.tags }}
|