Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
j2whiting authored Sep 4, 2024
0 parents commit b8f9e01
Show file tree
Hide file tree
Showing 11 changed files with 476 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

!build/*-runner
!build/*-runner.jar
!build/lib/*
!build/quarkus-app/*

**/node_modules
26 changes: 26 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# https://editorconfig.org

root = true

[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
trim_trailing_whitespace = true
indent_style = tab
indent_size = 2

[*.md]
trim_trailing_whitespace = false
indent_style = space

[*.{yml,yaml}]
indent_style = space

[*.{cmd,bat}]
end_of_line = crlf

[*.gradle]
indent_size = 4
6 changes: 6 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Description

* Include a summary of the changes and the related issue.
* Include relevant motivation and context.

Resolves #(issue)
25 changes: 25 additions & 0 deletions .github/workflows/integration-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
# Automatically adds issues to the Integration Github project
# if the issue is tagged with `integration`

name: Add integration tasks to Integration project

on:
issues:
types:
- reopened
- opened
- labeled
- edited

jobs:
add-to-project:
name: Add integration issue to project
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@16678f07cc736f4fe688569f2d1df41efd2fcefe
with:
project-url: https://github.com/orgs/DARPA-ASKEM/projects/5
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
labeled: integration
label-operator: OR
35 changes: 35 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
# This workflow will lint all YAML and Docker files
name: Global File Linting
# yamllint disable-line rule:truthy
on:
workflow_call:
push:
paths:
- '**.yaml'
- '**.yml'
- '**/Dockerfile*'
branches: ['main']
pull_request:
paths:
- '**.yaml'
- '**.yml'
- '**/Dockerfile*'
branches: ['main']

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true

jobs:
lintYaml:
name: Lint YAML Files
uses: darpa-askem/.github/.github/workflows/lint-yaml.yaml@main
with:
strict: false

lintDocker:
name: Lint Docker Files
uses: darpa-askem/.github/.github/workflows/lint-docker.yaml@main
with:
failure-threshold: 'error'
36 changes: 36 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
# Automatically build Docker images on changes to main and push them to a
# Container Registry using HCL Bake file.

name: Build Docker Images
# yamllint disable-line rule:truthy
on:
workflow_dispatch:
push:
branches: ['main']
tags: ['*']

jobs:
# Call the Lint & Format workflow before publishing
verify:
uses: ./.github/workflows/lint.yaml

# Call the Tag Generator to generate an image tag to use
tag-generator:
uses: darpa-askem/.github/.github/workflows/tag-generator.yaml@main

# Build and Publish all targets associated with specified group
bake:
needs:
- verify
- tag-generator
uses: darpa-askem/.github/.github/workflows/bake-publish.yml@main
with:
file: 'docker-bake.hcl'
group: 'prod'
registry: 'ghcr.io'
organization: ${{ github.repository_owner }}
tag: ${{ needs.tag-generator.outputs.tag }}
secrets:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
73 changes: 73 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Gradle
.gradle/
build/

# Eclipse
.project
.classpath
.settings/
bin/

# IntelliJ
.idea/*
*.ipr
*.iml
*.iws

# NetBeans
nb-configuration.xml

# Visual Studio Code
.vscode/*
.factorypath

# Nova
.nova/*

# OSX
.DS_Store

# Vim
*.swp
*.swo

# patch
*.orig
*.rej

# Local environment
.env

# Python
__pycache__
.mypy_cache
.pytest_cache
dist
.venv
.tmp
.vscode
.cache
.sqlite
experiments-main
api.env

# Minio
.minio.sys

# Yarn
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
.pnp.*

# NPM
node_modules
dist
build

# MISC
create.sql
.eslintcache
5 changes: 5 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
extends: default

rules:
line-length: disable
Loading

0 comments on commit b8f9e01

Please sign in to comment.