Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial pull #1

Merged
merged 10 commits into from
May 22, 2020
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
20 changes: 20 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Auto detect text files and perform LF normalization
* text=auto

# Gradle files
gradlew text eol=lf diff=bash
*.gradle text eol=lf diff=java
*.gradle.kts text eol=lf diff=java

# Force bash scripts to always use lf line endings so that if a repo is accessed
# in Unix via a file share from Windows, the scripts will work.
*.bat text eol=crlf diff=batch
*.sh text eol=lf diff=bash
*.properties text eol=lf
run text eol=lf diff=bash
finish text eol=lf diff=bash

# These files are binary and should be left untouched
# (binary is a macro for -text -diff)
*.jar binary
*.war binary
38 changes: 38 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: Build and Push Docker Images
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: 8
- name: Setup Gradle Cache
uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Log in to Docker Hub
run: docker login -u '${{ secrets.REGISTRY_USER }}' -p '${{ secrets.REGISTRY_PASS }}' '${{ secrets.REGISTRY_URL }}'
- name: Build Docker images
uses: eskatos/gradle-command-action@v1
with:
arguments: build '-Prepository=${{ secrets.REPOSITORY }}' --info
- name: Push Docker images
uses: eskatos/gradle-command-action@v1
with:
arguments: push '-Prepository=${{ secrets.REPOSITORY }}' '-PregistryUrl=${{ secrets.REGISTRY_URL }}' '-PregistryUsername=${{ secrets.REGISTRY_USER }}' '-PregistryPassword=${{ secrets.REGISTRY_PASS }}' --info
# @todo add tests.
31 changes: 31 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI
on:
push:
branches:
- '*/*'
- '*'
- '!master'
jobs:
build:
name: Build Docker Images
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: 8
- name: Setup Gradle Cache
uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build Docker images
uses: eskatos/gradle-command-action@v1
with:
arguments: build --info
# @todo add tests.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.idea/
.gradle/
build
scratch
scratch.md
14 changes: 14 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"files.associations": {
"*.cfg.tmpl": "properties",
"*.cnf.tmpl": "properties",
"*.conf.tmpl": "properties",
"*.ini.tmpl": "properties",
"*.json.tmpl": "json",
"*.local.tmpl": "shellscript",
"*.properties.tmpl": "properties",
"*.sh.tmpl": "shellscript",
"*.sql.tmpl": "sql",
"*.xml.tmpl": "xml"
}
}
Loading