Skip to content

Release DataLens v1.18.1 #17

Release DataLens v1.18.1

Release DataLens v1.18.1 #17

Workflow file for this run

on:
pull_request:
paths:
- 'templates/**.j2'
- 'versions-config.json'
workflow_call:
inputs:
pr_head:
type: string
name: Update docker-compose and helm versions
permissions:
contents: write
jobs:
update_versions:
name: build files
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
with:
ref: "${{ github.event.pull_request.head.ref }}${{ inputs.pr_head }}"
token: ${{ secrets.GH_TOKEN }}
- uses: azure/[email protected]
with:
version: v3.16.2
- name: build docker-compose.yml
uses: cuchi/[email protected]
with:
template: ./templates/docker-compose.j2
output_file: ./docker-compose.yml
data_file: versions-config.json
data_format: json
- name: build docker-compose-dev.yml
uses: cuchi/[email protected]
with:
template: ./templates/docker-compose.j2
output_file: ./docker-compose-dev.yml
data_file: versions-config.json
data_format: json
env:
DEV_MODE: 'true'
- name: build docker-compose.zitadel.yml
uses: cuchi/[email protected]
with:
template: ./templates/docker-compose.zitadel.j2
output_file: ./docker-compose.zitadel.yml
data_file: versions-config.json
data_format: json
- name: check docker-compose.yml config
run: docker compose -f ./docker-compose.yml config
- name: build deploy/helm/values.yaml
uses: cuchi/[email protected]
with:
template: ./templates/helm-values.j2
output_file: ./deploy/helm/values.yaml
data_file: versions-config.json
data_format: json
- name: check helm config
run: helm lint ./deploy/helm
- name: Initialize mandatory git config
run: |
git config user.email "" && git config user.name "GitHub Action"
- name: Commit compose files
id: make-commit
run: |
git add docker-compose.yml docker-compose-dev.yml docker-compose.zitadel.yml deploy/helm/values.yaml
if ! git diff-index --quiet HEAD; then
git commit --message "update docker-compose and helm versions"
git push
fi