Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Improvements #33

Merged
merged 13 commits into from
Mar 23, 2024
20 changes: 18 additions & 2 deletions .github/workflows/auto-cleaner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- '.github/auto-cleaner.js'
- '.github/workflows/auto-cleaner.yml'
schedule:
- cron: '0 */12 * * *'
- cron: '0 0 */3 * *'

env:
NODE_VERSION: 20.x
Expand All @@ -37,6 +37,7 @@ jobs:
node-version: ${{env.NODE_VERSION}}

- name: Cleanup
if: github.event.action == 'closed' && github.event.pull_request.merged
run: |
cat << EOF > /tmp/rclone.conf
$RCLONE_CONFIG
Expand All @@ -48,4 +49,19 @@ jobs:
API_ENDPOINT: ${{secrets.HOMELAB_LXC_EP}}
RCLONE_CONFIG: ${{secrets.RCLONE_CONFIG}}
RCLONE_CONFIG_PASS: ${{secrets.RCLONE_CONFIG_PASS}}
MAX_BUILDS: 3
MAX_BUILDS: 1

- name: Cleanup Test
if: github.event.action != 'closed'
run: |
cat << EOF > /tmp/rclone.conf
$RCLONE_CONFIG
EOF
echo
node ${{github.workspace}}/.github/auto-cleaner.js
env:
API_TOKEN: ${{secrets.HOMELAB_LXC_TOKEN}}
API_ENDPOINT: ${{secrets.HOMELAB_LXC_EP}}
RCLONE_CONFIG: ${{secrets.RCLONE_CONFIG}}
RCLONE_CONFIG_PASS: ${{secrets.RCLONE_CONFIG_PASS}}
MAX_BUILDS: 10
2 changes: 1 addition & 1 deletion .github/workflows/build-infisical.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
app_name: infisical
app_version: ${{needs.init.outputs.app_version}}
description: Open Source all-in-one secret management platform to securely manage application configuration and secrets across your team and infrastructure.
categories: Secrets management, Security, Infra
categories: Secrets management, Security
project_source: https://github.com/Infisical/infisical
distribution: debian
release: bookworm
Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/build-jenkins.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build Jenkins LXC Image

on:
pull_request:
types:
- opened
- reopened
- closed
branches:
- main
paths:
- '.github/workflows/build-jenkins.yml'
- 'templates/jenkins.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 -Ls https://updates.jenkins.io/stable/latestCore.txt | 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/jenkins.yml
app_name: jenkins
app_version: ${{needs.init.outputs.app_version}}
description: The leading open source automation server. Build great things at any scale.
categories: Automation, CI CD, Dev
project_source: https://github.com/jenkinsci/jenkins
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
48 changes: 48 additions & 0 deletions .github/workflows/build-keycloak.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build Keycloak LXC Image

on:
pull_request:
types:
- opened
- reopened
- closed
branches:
- main
paths:
- '.github/workflows/build-keycloak.yml'
- 'templates/keycloak.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 -Ls https://api.github.com/repos/keycloak/keycloak/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/keycloak.yml
app_name: keycloak
app_version: ${{needs.init.outputs.app_version}}
description: Open Source Identity and Access Management.
categories: Identity, IAM, IDP, Security
project_source: https://github.com/keycloak/keycloak
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
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