Skip to content

Commit 88c066b

Browse files
Merge pull request #19 from sherifabdlnaby/v4.2
V4.2
2 parents 2f7c058 + d2f551d commit 88c066b

14 files changed

+356
-99
lines changed

.github/auto-release.yml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name-template: 'v$RESOLVED_VERSION 🌈'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
version-template: '$MAJOR.$MINOR.$PATCH'
4+
version-resolver:
5+
major:
6+
labels:
7+
- 'major'
8+
minor:
9+
labels:
10+
- 'minor'
11+
- 'enhancement'
12+
- 'feature'
13+
patch:
14+
labels:
15+
- 'auto-update'
16+
- 'patch'
17+
- 'fix'
18+
- 'chore'
19+
- 'bugfix'
20+
- 'bug'
21+
- 'hotfix'
22+
default: 'patch'
23+
24+
categories:
25+
- title: '🚀 Enhancements'
26+
labels:
27+
- 'enhancement'
28+
- 'feature'
29+
- 'patch'
30+
- title: '🐛 Bug Fixes'
31+
labels:
32+
- 'fix'
33+
- 'bugfix'
34+
- 'bug'
35+
- 'hotfix'
36+
- title: '🤖 Automatic Updates'
37+
labels:
38+
- 'auto-update'
39+
- title: '📝 Documentation'
40+
labels:
41+
- 'chore'
42+
43+
autolabeler:
44+
- label: 'chore'
45+
files:
46+
- '*.md'
47+
- label: 'enhancement'
48+
title: '/enhancement/i'
49+
50+
- label: 'bugfix'
51+
title: '/bugfix/i'
52+
53+
- label: 'bug'
54+
title: '/🐛|🐞|fixes/i'
55+
56+
- label: 'auto-update'
57+
title: '/🤖/i'
58+
59+
- label: 'feature'
60+
title: '/🚀|🎉/i'
61+
62+
change-template: |
63+
<details>
64+
<summary>$TITLE @$AUTHOR (#$NUMBER)</summary>
65+
66+
$BODY
67+
</details>
68+
69+
template: |
70+
## Changes
71+
72+
$CHANGES
73+
74+
replacers:
75+
# Remove irrelevant information from Renovate bot
76+
- search: '/(?<=---\s+)+^#.*(Renovate configuration|Configuration)(?:.|\n)*?This PR has been generated .*/gm'
77+
replace: ''
78+
# Remove Renovate bot banner image
79+
- search: '/\[!\[[^\]]*Renovate\][^\]]*\](\([^)]*\))?\s*\n+/gm'
80+
replace: ''

.github/workflows/auto-release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: auto-release
2+
3+
on:
4+
push:
5+
# branches to consider in the event; optional, defaults to all
6+
branches:
7+
- main
8+
# pull_request event is required only for autolabeler
9+
pull_request:
10+
# Only following types are handled by the action, but one can default to all as well
11+
types: [ opened, reopened, synchronize ]
12+
13+
jobs:
14+
publish:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
# Drafts your next Release notes as Pull Requests are merged into "main"
19+
- uses: release-drafter/release-drafter@v5
20+
with:
21+
publish: false
22+
prerelease: true
23+
config-name: auto-release.yml
24+
# allows autolabeler to run without unmerged PRs from being added to draft
25+
disable-releaser: ${{ github.ref_name != 'main' }}
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/build-test-scan.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
# A sample workflow which checks out the code, builds a container
7+
# image using Docker and scans that image for vulnerabilities using
8+
# Snyk. The results are then uploaded to GitHub Security Code Scanning
9+
#
10+
# For more examples, including how to limit scans to only high-severity
11+
# issues, monitor images for newly disclosed vulnerabilities in Snyk and
12+
# fail PR checks for new vulnerabilities, see https://github.com/snyk/actions/
13+
14+
name: Build, Test, and Scan
15+
16+
on:
17+
push:
18+
branches: [ main ]
19+
pull_request:
20+
# The branches below must be a subset of the branches above
21+
branches: [ main ]
22+
schedule:
23+
- cron: '41 5 * * 5'
24+
25+
env:
26+
APP_BASE_DIR: "./app"
27+
28+
jobs:
29+
Build-Test-Scan:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v2
33+
- name: Install Demo App
34+
uses: php-actions/composer@v6
35+
with:
36+
dev: no
37+
command: create-project
38+
args: --no-install --no-scripts symfony/symfony-demo app
39+
php_version: 7.4
40+
- name: Build & Deploy
41+
run: make deploy
42+
- name: Test the App Startup
43+
run: sleep 5 && curl localhost:8080 -I
44+
- name: Run Snyk to check Docker image for vulnerabilities
45+
# Snyk can be used to break the build when it detects vulnerabilities.
46+
# In this case we want to upload the issues to GitHub Code Scanning
47+
continue-on-error: true
48+
uses: snyk/actions/docker@14818c4695ecc4045f33c9cee9e795a788711ca4
49+
env:
50+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
51+
with:
52+
image: kubephp_app:latest kubephp_web:latest
53+
args: --file=Dockerfile --print-deps
54+
- name: Upload result to GitHub Code Scanning
55+
uses: github/codeql-action/upload-sarif@v1
56+
with:
57+
sarif_file: snyk.sarif

.github/workflows/lint.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
# A sample workflow which checks out the code, builds a container
7+
# image using Docker and scans that image for vulnerabilities using
8+
# Snyk. The results are then uploaded to GitHub Security Code Scanning
9+
#
10+
# For more examples, including how to limit scans to only high-severity
11+
# issues, monitor images for newly disclosed vulnerabilities in Snyk and
12+
# fail PR checks for new vulnerabilities, see https://github.com/snyk/actions/
13+
14+
name: Lint
15+
16+
on:
17+
push:
18+
branches: [ main ]
19+
pull_request:
20+
branches: [ main ]
21+
22+
23+
jobs:
24+
Lint:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v2
28+
- name: Hadolint Action
29+
uses: hadolint/hadolint-action@v1.6.0
30+
with:
31+
dockerfile: Dockerfile
32+
ignore: DL3018 SC2086 DL3019

.github/workflows/snyk-container.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)