Skip to content

Commit d2e9b35

Browse files
authored
ci: (PSKD-1515) adding release workflows (#465)
Adding release workflows --------- Signed-off-by: chjmil <christopher.miller@sas.com>
1 parent 23bf0e9 commit d2e9b35

File tree

6 files changed

+121
-1
lines changed

6 files changed

+121
-1
lines changed

.github/release-drafter.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name-template: 'v$RESOLVED_VERSION - <RELEASE_DATE>'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
categories:
4+
- title: '⚠️ BREAKING CHANGES'
5+
labels:
6+
- 'breaking change'
7+
- title: '🚀 Features'
8+
labels:
9+
- 'feature'
10+
- 'enhancement'
11+
- title: '🐛 Bug Fixes'
12+
labels:
13+
- 'bug'
14+
- title: '📖 Documentation'
15+
labels:
16+
- 'documentation'
17+
- title: '⏱️ Performance'
18+
labels:
19+
- 'performance'
20+
- title: '🤖 Tests'
21+
labels:
22+
- 'test'
23+
- title: '🔧 Maintenance'
24+
labels:
25+
- 'build'
26+
- 'chore'
27+
- 'CI/CD'
28+
- 'refactor'
29+
- 'revert'
30+
- 'style'
31+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
32+
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
33+
version-resolver:
34+
major:
35+
labels:
36+
- 'breaking change'
37+
minor:
38+
labels:
39+
- 'feature'
40+
- 'enhancement'
41+
patch:
42+
labels:
43+
- 'bug'
44+
- 'CI/CD'
45+
- 'documentation'
46+
- 'test'
47+
- 'performance'
48+
- 'refactor'
49+
- 'chore'
50+
- 'revert'
51+
- 'style'
52+
default: patch
53+
template: |
54+
## Changes
55+
56+
$CHANGES
57+
58+
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: PR Conventional Commit Validation
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, edited]
6+
branches:
7+
- main
8+
- staging
9+
10+
jobs:
11+
validate-pr-title:
12+
runs-on: ubuntu-latest
13+
steps:
14+
# https://github.com/marketplace/actions/conventional-commit-in-pull-requests
15+
- name: PR Conventional Commit Validation
16+
uses: ytanikin/pr-conventional-commits@1.4.0
17+
with:
18+
task_types: '["fix", "feat", "build", "chore", "ci", "docs", "style", "refactor", "perf", "test"]'
19+
custom_labels: '{"feat": "enhancement", "fix": "bug", "docs": "documentation", "ci": "CI/CD", "perf": "performance"}'

.github/workflows/draft-release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
update_release_draft:
13+
permissions:
14+
# write permission is required to create a github release
15+
contents: write
16+
runs-on: ubuntu-latest
17+
steps:
18+
# Drafts your next Release notes as Pull Requests are merged into "main"
19+
- uses: release-drafter/release-drafter@v6
20+
with:
21+
disable-autolabeler: true
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/semvar.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Update Semver
2+
on:
3+
push:
4+
branches-ignore:
5+
- '**'
6+
tags:
7+
- 'v*.*.*'
8+
jobs:
9+
update-semver:
10+
# Update the tags based on semantic versioning.
11+
# Also update the latest tag.
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: haya14busa/action-update-semver@v1
16+
- name: Create latest git tag
17+
run: |
18+
git tag latest
19+
- name: Push latest git tag
20+
run: git push -f origin latest

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ARG TERRAFORM_VERSION=1.10.5
22
ARG AZURECLI_VERSION=2.70.0
33

4-
FROM hashicorp/terraform:$TERRAFORM_VERSION as terraform
4+
FROM hashicorp/terraform:$TERRAFORM_VERSION AS terraform
55
FROM mcr.microsoft.com/azure-cli:$AZURECLI_VERSION
66
ARG KUBECTL_VERSION=1.30.10
77

0 commit comments

Comments
 (0)