Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name-template: "v$NEXT_PATCH_VERSION 🌈"
tag-template: "$NEXT_PATCH_VERSION"
categories:
- title: "🚀 Features"
labels:
- "feature"
- "enhancement"
- title: "🐛 Bug Fixes"
labels:
- "fix"
- "bugfix"
- "bug"
- title: "🧰 Maintenance"
label: "chore"
- title: '⬆️ Dependencies'
collapse-after: 5
labels:
- 'dependencies'
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
template: |
## Changes

$CHANGES

**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...$RESOLVED_VERSION
23 changes: 16 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: CI
on:
push:
branches: [ master ]
tags:
- "*"

workflow_dispatch:

Expand All @@ -19,12 +21,19 @@ jobs:
cache: 'maven'
- name: Build with Maven
run: stackrox-container-image-scanner/mvnw package hpi:hpi --file stackrox-container-image-scanner/pom.xml
- uses: "marvinpinto/action-automatic-releases@latest"
- uses: release-drafter/release-drafter@v5
id: release_drafter
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Release Asset Linux
id: upload-release-asset-linux
uses: gfreezy/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true
automatic_release_tag: "latest"
title: "Development Build"
files: |
stackrox-container-image-scanner/target/stackrox-container-image-scanner.hpi
release_id: ${{ steps.release_drafter.outputs.id }}
upload_url: ${{ steps.release_drafter.outputs.upload_url }}
asset_path: stackrox-container-image-scanner/target/stackrox-container-image-scanner.hpi
asset_name: stackrox-container-image-scanner.hpi
asset_content_type: application/octet-stream