Skip to content

build(deps): bump Alfresco/alfresco-build-tools from 3.2.1 to 3.3.3 #365

build(deps): bump Alfresco/alfresco-build-tools from 3.2.1 to 3.3.3

build(deps): bump Alfresco/alfresco-build-tools from 3.2.1 to 3.3.3 #365

Workflow file for this run

name: CI
on:
push:
branches:
- develop
pull_request:
branches:
- develop
types:
- opened
- reopened
- synchronize
- labeled
workflow_dispatch:
env:
CHART_NAME: common
CHART_DIR: charts/common
HELM_REPO: Activiti/activiti-cloud-helm-charts
HELM_REPO_NAME: activiti-cloud-helm-charts
HELM_REPO_BASE_URL: https://activiti.github.io/activiti-cloud-helm-charts
HELM_REPO_BRANCH: gh-pages
HELM_REPO_SUBFOLDER: .
jobs:
check-ext-build:
name: Check dependabot/external build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Activiti/Activiti/.github/actions/[email protected]
pre-commit:
needs: check-ext-build
runs-on: ubuntu-latest
steps:
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]
- uses: bridgecrewio/[email protected]
with:
framework: kubernetes
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]
build:
runs-on: ubuntu-latest
needs: pre-commit
steps:
- uses: actions/checkout@v4
- name: Build
uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]
with:
chart-dir: ${{ env.CHART_DIR }}
- name: Setup Helm test plugin
run: helm plugin install https://github.com/helm-unittest/helm-unittest.git --version v0.3.2
- name: Test
run: helm unittest $CHART_DIR
publish:
runs-on: ubuntu-latest
needs: build
outputs:
version: ${{ steps.calculate-next-internal-version.outputs.next-prerelease }}
steps:
- uses: actions/checkout@v4
- name: Parse next release
id: helm-parse-next-release
uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]
with:
chart-dir: ${{ env.CHART_DIR }}
- id: calculate-next-internal-version
name: Calculate next internal release
uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]
with:
next-version: ${{ steps.helm-parse-next-release.outputs.next-release }}
- id: helm-release-and-publish
name: Release and publish helm chart
uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]
with:
version: ${{ steps.calculate-next-internal-version.outputs.next-prerelease }}
chart-dir: ${{ env.CHART_DIR }}
helm-repository: ${{ env.HELM_REPO }}
helm-repository-branch: ${{ env.HELM_REPO_BRANCH }}
helm-repository-subfolder: ${{ env.HELM_REPO_SUBFOLDER }}
helm-repository-base-url: ${{ env.HELM_REPO_BASE_URL }}
helm-repository-token: ${{ secrets.BOT_GITHUB_TOKEN }}
git-username: ${{ secrets.BOT_GITHUB_USERNAME }}
do-push: ${{ github.event_name == 'push' }}
propagate:
if: github.event_name == 'push'
runs-on: ubuntu-latest
needs: publish
env:
VERSION: ${{ needs.publish.outputs.version }}
DEVELOPMENT_BRANCH: ${{ github.ref_name }}
steps:
- uses: Activiti/activiti-scripts/.github/actions/wait-for-chart@develop
with:
chart-name: ${{ env.CHART_NAME }}
version: ${{ env.VERSION }}
helm-repo-name: ${{ env.HELM_REPO_NAME }}
helm-repo-url: ${{ env.HELM_REPO_BASE_URL }}
- uses: actions/checkout@v4
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]
env:
GH_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
with:
version: ${{ env.VERSION }}
auto-merge: 'true'
labels: ${{ env.DEVELOPMENT_BRANCH }}
base-branch-name: ${{ env.DEVELOPMENT_BRANCH }}
git-username: ${{ secrets.BOT_GITHUB_USERNAME }}
git-token: ${{ secrets.BOT_GITHUB_TOKEN }}
git-author-name: ${{ secrets.BOT_GITHUB_USERNAME }}
git-author-email: ${{ secrets.BOT_GITHUB_USERNAME }}@users.noreply.github.com
notify:
runs-on: ubuntu-latest
needs:
- propagate
if: always() && failure() && github.event_name == 'push'
steps:
- name: Slack Notification
uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]
with:
channel-id: 'eng-hxp-studio-activiti-gh-notifs'
token: ${{ secrets.SLACK_NOTIFICATION_BOT_TOKEN }}