CI / Build and push docker image (push) Successful in 2m57s
- KayaApp with GET/PUT recursive routes backed by memcached (aiomcache) - env-based configuration, metadata-aware value encoding, key prefix/digest - Granian RSGI launcher (rbcs-server / python -m kaya_rbcs) - pinned requirements via pip-compile, alpine:3.24 Dockerfile with healthcheck - offline tests using an in-process fake memcached - Gitea Actions workflow to build and push the multi-arch Docker image
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
name: CI
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'release/*'
|
|
|
|
jobs:
|
|
build_and_push_docker_image:
|
|
name: "Build and push docker image"
|
|
runs-on: hostinger
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@v6
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
- name: Login to Gitea container registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: gitea.woggioni.net
|
|
username: woggioni-opencode-agent
|
|
password: ${{ secrets.PUBLISHER_TOKEN }}
|
|
- name: Extract metadata for image tags
|
|
id: meta
|
|
uses: docker/metadata-action@v5
|
|
with:
|
|
images: gitea.woggioni.net/woggioni-opencode-agent/kaya-rbcs
|
|
flavor: latest=false
|
|
tags: |
|
|
type=match,pattern=release/(.*),group=1
|
|
type=raw,value=latest
|
|
- name: Build and push docker image
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
platforms: linux/amd64,linux/arm64
|
|
push: true
|
|
pull: true
|
|
tags: ${{ steps.meta.outputs.tags }}
|