ci: CICD-сборка (Gitea Actions: bootJar → docker → helm-publish) + helm-чарт
Build Media Mirror API / Build and publish (release) Successful in 27s
Build Media Mirror API / Build and publish (release) Successful in 27s
- workflow на release published: bootJar, build-docker (media-mirror/*), helm-publish (9.9.9 → tag) - helm: Chart.yaml placeholder 9.9.9, values, templates (deployment/service/configmap/secret) - env: DB, S3, Jellyfin через secret
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
name: 'Build Media Mirror API'
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy-dev:
|
||||
name: 'Build and publish'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 'Checkout'
|
||||
uses: https://github.com/actions/checkout@v4
|
||||
|
||||
- name: 'Config gradle repository replace'
|
||||
uses: https://git.binom.pw/otp/devops/config-gradle@main
|
||||
|
||||
- name: 'Build bootJar'
|
||||
uses: https://git.binom.pw/subochev/devops/build-gradle@main
|
||||
with:
|
||||
target: bootJar
|
||||
|
||||
- name: Build Docker Image
|
||||
uses: https://git.binom.pw/subochev/devops/build-docker@main
|
||||
with:
|
||||
image_name: "media-mirror/api"
|
||||
tags: latest ${{ gitea.ref_name }}
|
||||
context: './'
|
||||
|
||||
- name: 'Publishing Helm'
|
||||
uses: https://git.binom.pw/subochev/devops/helm-publish@main
|
||||
with:
|
||||
chart_directory: 'helm'
|
||||
helm_version: ${{ gitea.ref_name }}
|
||||
helm_version_placeholder: '9.9.9'
|
||||
Reference in New Issue
Block a user