Skip to content

Commit

Permalink
Add Matomo template
Browse files Browse the repository at this point in the history
  • Loading branch information
Soubinan committed Mar 23, 2024
1 parent 70d8d3f commit 9dd03c4
Show file tree
Hide file tree
Showing 2 changed files with 1,367 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/build-matomo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build Matomo LXC Image

on:
pull_request:
types:
- opened
- reopened
- closed
branches:
- main
paths:
- '.github/workflows/build-matomo.yml'
- 'templates/matomo.yml'
schedule:
- cron: '0 3 */1 * *'

jobs:
init:
if: github.event.action != 'closed' || (github.event.action == 'closed' && github.event.pull_request.merged)
runs-on: ubuntu-latest
steps:
- name: Get Application version
id: get-app-version
run: |
echo "APP_VERSION=$(curl -s https://api.github.com/repos/matomo-org/matomo/releases/latest | jq -r '.tag_name' | sed -E 's/^v|V|.+@//')" >> $GITHUB_OUTPUT
outputs:
app_version: ${{steps.get-app-version.outputs.APP_VERSION}}

image-build:
needs: init
strategy:
matrix:
architectures:
- amd64
uses: ./.github/workflows/builder.yml
with:
config_path: templates/matomo.yml
app_name: matomo
app_version: ${{needs.init.outputs.app_version}}
description: Google Analytics alternative that protects your data and your customers' privacy.
categories: Analytics, SEO, Tracking
project_source: https://github.com/matomo-org/matomo
distribution: debian
release: bookworm
architecture: ${{matrix.architectures}}
branch_name: ${{github.event.pull_request.base.ref}}
is_merged: ${{github.event.pull_request.merged || github.event_name == 'schedule'}}
secrets: inherit
Loading

0 comments on commit 9dd03c4

Please sign in to comment.