Skip to content

Commit

Permalink
Adding release-drafter and change release trigger type.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 committed Sep 16, 2020
1 parent ea600ee commit 56d0187
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 3 deletions.
30 changes: 30 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'

template: |
## General Changes
$CHANGES
categories:
- title: '🚀 Features'
labels:
- 'feature'
- 'enhancement'
- title: '🐛 Bug Fixes'
labels:
- 'fix'
- 'bugfix'
- 'bug'

version-resolver:
major:
labels:
- 'major'
minor:
labels:
- 'minor'
patch:
labels:
- 'patch'
default: patch
3 changes: 3 additions & 0 deletions .github/workflows/latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ jobs:
docker login -u metalstackci -p ${{ secrets.DOCKER_HUB_TOKEN }}
docker build -t metalstack/metal-api .
docker push metalstack/metal-api
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Build image from release tag

on:
push:
tags:
- "v*"
release:
types:
- published

jobs:
build:
Expand Down

0 comments on commit 56d0187

Please sign in to comment.