ci(): added basic CI: build, test, docker build & push

This commit is contained in:
ITQ
2026-04-26 19:25:43 +03:00
parent 910a382679
commit c609bd1e3c
4 changed files with 155 additions and 28 deletions
+31
View File
@@ -0,0 +1,31 @@
name: CI
run-name: "${{ github.ref_name }} - ${{ github.event_name }} by @${{ github.actor }}"
on:
push:
branches: [develop, main]
tags: ["v*"]
pull_request:
branches: [develop, main]
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build & Test
uses: ./.github/workflows/build.yaml
permissions:
contents: read
docker:
name: Docker
needs: build
uses: ./.github/workflows/docker.yaml
permissions:
contents: read
packages: write
with:
push: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') }}
secrets: inherit