Skip to content

Commit

Permalink
Merge pull request #118 from rwth-acis/relese-prep
Browse files Browse the repository at this point in the history
Prepare 0.9.0 release
  • Loading branch information
ThoreKr authored Sep 21, 2021
2 parents ebd8919 + 69bae48 commit 8539e3e
Show file tree
Hide file tree
Showing 244 changed files with 11,111 additions and 17,531 deletions.
26 changes: 0 additions & 26 deletions .classpath

This file was deleted.

6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#
# https://help.github.com/articles/dealing-with-line-endings/
#
# These are explicitly windows files and should use crlf
*.bat text eol=crlf

76 changes: 76 additions & 0 deletions .github/workflows/build_container.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
on: [ push ]

name: Build Container

jobs:
build:
runs-on: ubuntu-latest

services:
postgres:
image: postgres:13
ports:
- 5432:5432
env:
POSTGRES_USER: reqbaz
POSTGRES_PASSWORD: reqbaz
POSTGRES_DB: reqbaz
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2
- name: Set up JDK 14
uses: actions/setup-java@v1
with:
java-version: 14
- name: Build release bundle with Gradle
run: ./gradlew export -x test #-Pservice.version=${{ steps.get_version.outputs.version-without-v }}
- name: Docker metadata setup
id: meta
uses: docker/metadata-action@v3
with:
# list of Docker images to use as base name for tags
images: |
ghcr.io/rwth-acis/requirementsbazaar
# generate Docker tags based on the following events/attributes
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
type=sha
- name: Docker metadata setup for init container
id: meta-init
uses: docker/metadata-action@v3
with:
# list of Docker images to use as base name for tags
images: |
ghcr.io/rwth-acis/requirementsbazaar-init
# generate Docker tags based on the following events/attributes
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
type=sha
- name: Login to Packages Container registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Build and push init container
uses: docker/build-push-action@v2
with:
context: .
file: DockerfileInit
push: true
tags: ${{ steps.meta-init.outputs.tags }}
labels: ${{ steps.meta-init.outputs.labels }}
36 changes: 36 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Gradle Build & Test
on: [ pull_request, push ]

jobs:
build:
runs-on: ubuntu-latest

services:
postgres:
image: postgres:13
ports:
- 5432:5432
env:
POSTGRES_USER: reqbaz
POSTGRES_PASSWORD: reqbaz
POSTGRES_DB: reqbaz
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2
- name: Set up JDK 14
uses: actions/setup-java@v1
with:
java-version: 14
- name: Build with Gradle
run: ./gradlew clean build --info
- uses: codecov/codecov-action@v1
with:
flags: unittests
files: ./reqbaz/build/reports/jacoco/test/jacocoTestReport.xml
fail_ci_if_error: true
verbose: true
61 changes: 61 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

name: Create Release

jobs:
build:
name: Create Pre-Release
runs-on: ubuntu-latest
services:
postgres:
image: postgres:13
ports:
- 5432:5432
env:
POSTGRES_USER: reqbaz
POSTGRES_PASSWORD: reqbaz
POSTGRES_DB: reqbaz
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Get Version
id: get_version
uses: battila7/get-version-action@v2
- name: Set up JDK 14
uses: actions/setup-java@v1
with:
java-version: 14
- name: Build release bundle with Gradle
run: ./gradlew packageDistribution -x test -Pservice.version=${{ steps.get_version.outputs.version-without-v }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
This is the ${{ steps.get_version.outputs.version }} release. For changes please check the [Changelog](https://github.com/rwth-acis/RequirementsBazaar/blob/develop/CHANGELOG.md).
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./reqbaz/build/dist/BazaarService.zip
asset_name: RequirementsBazaar-${{ steps.get_version.outputs.version }}.zip
asset_content_type: application/zip
61 changes: 61 additions & 0 deletions .github/workflows/release_rc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v[0-9]+.[0-9]+.[0-9]+-rc\.[0-9]+'

name: Create Pre-Release

jobs:
build:
name: Create Pre-Release
runs-on: ubuntu-latest
services:
postgres:
image: postgres:13
ports:
- 5432:5432
env:
POSTGRES_USER: reqbaz
POSTGRES_PASSWORD: reqbaz
POSTGRES_DB: reqbaz
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Get Version
id: get_version
uses: battila7/get-version-action@v2
- name: Set up JDK 14
uses: actions/setup-java@v1
with:
java-version: 14
- name: Build release bundle with Gradle
run: ./gradlew packageDistribution -x test -Pservice.version=${{ steps.get_version.outputs.version-without-v }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
This is a pre-release. For changes please check the [Changelog](https://github.com/rwth-acis/RequirementsBazaar/blob/develop/CHANGELOG.md).
draft: false
prerelease: true
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./reqbaz/build/dist/BazaarService.zip
asset_name: RequirementsBazaar-${{ steps.get_version.outputs.version }}.zip
asset_content_type: application/zip
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/.las2peer
/node-storage
/startup
/log
log/
/lib
etc/ivy/ivy.jar
/service
Expand All @@ -21,6 +21,7 @@ etc/ivy/ivy.jar
restMapping.xml
/out
/output/
/servicebundle

# IntelliJ
.idea/
Expand Down Expand Up @@ -62,3 +63,10 @@ Temporary Items
.apdisk

# End of https://www.gitignore.io/api/macos
# Ignore Gradle project-specific cache directory
.gradle

# Ignore Gradle build output directory
build

.db_data
15 changes: 0 additions & 15 deletions .project

This file was deleted.

Loading

0 comments on commit 8539e3e

Please sign in to comment.