ci: update workflow config

This commit is contained in:
sebthom 2025-08-12 11:54:18 +02:00
parent 71f2580d66
commit 050f36c438
4 changed files with 26 additions and 50 deletions

6
.gitattributes vendored
View file

@ -39,6 +39,7 @@
# Config/Serialisation # Config/Serialisation
.editorconfig text .editorconfig text
**/.editorconfig text **/.editorconfig text
*.graphql text
*.ini text *.ini text
*.properties text *.properties text
*.json text *.json text
@ -56,8 +57,11 @@
*.fish text eol=lf *.fish text eol=lf
*.sh text eol=lf *.sh text eol=lf
*.zsh text eol=lf *.zsh text eol=lf
*.dart text
*.hx text
*.lua text *.lua text
*.php text *.php text
*.py text
*.python text *.python text
*.sql text *.sql text
**/Dockerfile text eol=lf **/Dockerfile text eol=lf
@ -125,6 +129,8 @@
*.htm text diff=html *.htm text diff=html
*.html text diff=html *.html text diff=html
*.js text *.js text
*.ts text
*.vue text
# https://git-scm.com/docs/gitattributes#_export_ignore # https://git-scm.com/docs/gitattributes#_export_ignore

View file

@ -3,42 +3,49 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# SPDX-ArtifactOfProjectHomePage: https://github.com/vegardit/docker-openldap # SPDX-ArtifactOfProjectHomePage: https://github.com/vegardit/docker-openldap
# #
# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions # https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
name: Build name: Build
on: on: # https://docs.github.com/en/actions/reference/events-that-trigger-workflows
schedule:
# https://docs.github.com/en/actions/reference/choosing-when-your-workflow-runs/events-that-trigger-workflows
- cron: '0 17 * * 3'
push: push:
branches-ignore: # build all branches except: branches-ignore: # build all branches except:
- 'dependabot/**' # prevent GHA triggered twice (once for commit to the branch and once for opening/syncing the PR) - 'dependabot/**' # prevent GHA triggered twice (once for commit to the branch and once for opening/syncing the PR)
tags-ignore: # don't build tags tags-ignore: # don't build tags
- '**' - '**'
paths-ignore: paths-ignore:
- '**/*.adoc'
- '**/*.md' - '**/*.md'
- '.editorconfig' - '.editorconfig'
- '.git*' - '.git*'
- '.github/*.yml' - '.github/*.yml'
- '.github/ISSUE_TEMPLATE/*'
- '.github/workflows/stale.yml' - '.github/workflows/stale.yml'
pull_request: pull_request:
paths-ignore: paths-ignore:
- '**/*.adoc'
- '**/*.md' - '**/*.md'
- '.editorconfig' - '.editorconfig'
- '.git*' - '.git*'
- '.github/ISSUE_TEMPLATE/*'
- '.github/*.yml' - '.github/*.yml'
- '.github/workflows/stale.yml' - '.github/workflows/stale.yml'
schedule:
# https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows
- cron: '0 17 * * 3'
workflow_dispatch: workflow_dispatch:
# https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#workflow_dispatch # https://docs.github.com/en/actions/reference/events-that-trigger-workflows#workflow_dispatch
defaults: defaults:
run: run:
shell: bash shell: bash
env: env:
DOCKER_REPO_NAME: openldap DOCKER_REPO_NAME: openldap
TRIVY_CACHE_DIR: ~/.trivy/cache TRIVY_CACHE_DIR: ~/.trivy/cache
jobs: jobs:
########################################################### ###########################################################
@ -152,7 +159,7 @@ jobs:
concurrency: concurrency:
group: ${{ github.workflow }} group: ${{ github.workflow }}
cancel-in-progress: false cancel-in-progress: false
permissions: permissions:
packages: write packages: write

View file

@ -1,11 +1,12 @@
# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions # https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
name: Stale issues name: Stale issues
on: on:
schedule: schedule:
- cron: '0 16 * * 1' # https://docs.github.com/en/actions/reference/events-that-trigger-workflows
- cron: '0 15 1,15 * *'
workflow_dispatch: workflow_dispatch:
# https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/ # https://docs.github.com/en/actions/reference/events-that-trigger-workflows#workflow_dispatch
permissions: permissions:
issues: write issues: write
@ -14,43 +15,6 @@ permissions:
jobs: jobs:
stale: stale:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Git checkout - name: Run stale action
uses: actions/checkout@v5 # https://github.com/actions/checkout uses: sebthom/gha-shared/.github/actions/stale@v1
- name: Run stale action
uses: actions/stale@v9 # https://github.com/actions/stale
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 90
days-before-close: 14
stale-issue-message: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed in 14 days if no further activity occurs.
If the issue is still valid, please add a respective comment to prevent this
issue from being closed automatically. Thank you for your contributions.
stale-issue-label: stale
close-issue-label: wontfix
exempt-issue-labels: |
enhancement
pinned
security
- name: Run stale action (for enhancements)
uses: actions/stale@v9 # https://github.com/actions/stale
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 360
days-before-close: 14
stale-issue-message: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed in 14 days if no further activity occurs.
If the issue is still valid, please add a respective comment to prevent this
issue from being closed automatically. Thank you for your contributions.
stale-issue-label: stale
close-issue-label: wontfix
only-labels: enhancement
exempt-issue-labels: |
pinned
security

1
.gitignore vendored
View file

@ -11,7 +11,6 @@ _LOCAL/
.project .project
.settings/ .settings/
bin/ bin/
**/.*.md.html
# IntelliJ # IntelliJ
/.idea /.idea