Skip to content

Commit

Permalink
Added info on workflows
Browse files Browse the repository at this point in the history
Updates on github-actions
  • Loading branch information
AlexRogalskiy committed Aug 11, 2021
1 parent d178460 commit 3345ab4
Show file tree
Hide file tree
Showing 125 changed files with 38,402 additions and 159 deletions.
19 changes: 14 additions & 5 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
/.dependabot
/.github
/.husky
/.idea
/node_modules
.dependabot
.github
.husky
.idea
reports
scripts
images
k8s
traffic
node_modules
tilt_modules

npm-debug.log
.gitignore

12 changes: 9 additions & 3 deletions .env
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
#####################################################
###### General settings
#####################################################
APP_HOST_NAME=scala-patterns
APP_CONTAINER_NAME=scala-patterns
APP_IMAGE_NAME=scala-patterns
IMAGE_SOURCE=node
IMAGE_TAG=12-buster

APP_NAME=scala-patterns
APP_HOST_NAME=${APP_NAME}
APP_CONTAINER_NAME=${APP_NAME}
APP_IMAGE_NAME=${APP_NAME}

APP_DATA_DIR=./data

TILT_WATCH_WINDOWS_BUFFER_SIZE=10265536
2 changes: 1 addition & 1 deletion .github/community-code-of-conduct.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ Should incidents arise, upon adjudication those found to be in violation of this


## Policy precedence
This version of the Nullables.io Community Code of Conduct may be a copy included for your convenience, and as such may not be up to date; all versions of the Nullables.io Community Code of Conduct are superseded by the version found in the [repository](https://github.com/AlexRogalskiy/gradle-java-sample), which takes precedence over any prior versions.
This version of the Nullables.io Community Code of Conduct may be a copy included for your convenience, and as such may not be up to date; all versions of the Nullables.io Community Code of Conduct are superseded by the version found in the [repository](https://github.com/AlexRogalskiy/scala-patterns), which takes precedence over any prior versions.
4 changes: 2 additions & 2 deletions .github/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ requestInfoUserstoExclude:
newIssueWelcomeComment: >
Thanks for opening your first issue here! 🎉<br>
👉 Be sure to:<br>
1. 📖 Have a look at the [Wiki](https://github.com/AlexRogalskiy/scala-patterns/wiki) and [README](https://github.com/AlexRogalskiy/java-patterns/blob/master/README.md) for information<br>
1. 📖 Have a look at the [Wiki](https://github.com/AlexRogalskiy/scala-patterns/wiki) and [README](https://github.com/AlexRogalskiy/scala-patterns/blob/master/README.md) for information<br>
2. 🔍 Search for similar [issues (open and closed)](https://github.com/AlexRogalskiy/scala-patterns/issues?q=is%3Aissue+)<br>
3. ✍️ Provide enough information to understand, recreate and help out with your problem<br>
4. ℹ️ Let us know if you find a solution and please share it with us<br>
Expand All @@ -45,7 +45,7 @@ newPRWelcomeComment: >
Thanks for opening this pull request! Please check out our contributing guidelines.
firstPRWelcomeComment: >
**Thanks for opening this pull request!**<br/><br/>Please check check if *Travis* or *Codacy* found any issues with your PR. Also make sure your commits are signed, and that you applied [Code style](https://github.com/AlexRogalskiy/java-patterns/issues) and [formatting](.editorconfig).<br/><br/>A maintainer will add an `is:priority` label to your PR if it is up for compensation.
**Thanks for opening this pull request!**<br/><br/>Please check check if *Travis* or *Codacy* found any issues with your PR. Also make sure your commits are signed, and that you applied [Code style](https://github.com/AlexRogalskiy/scala-patterns/issues) and [formatting](.editorconfig).<br/><br/>A maintainer will add an `is:priority` label to your PR if it is up for compensation.
firstPRMergeComment: >
** Congrats on merging your first pull request!**<br/><br/>Be sure to follow the issue template. Your issue will be reviewed by a maintainer and labeled for further action.
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Docker build and container scan

on:
push:
branches:
- '**'

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Docker build
run: |
docker build . --file Dockerfile --tag containerscanner:${{ github.sha }}
- name: Anchore scan
uses: anchore/scan-action@1.0.6
with:
image-reference: containerscanner:${{ github.sha }}
dockerfile-path: Dockerfile
include-app-packages: true
fail-build: true # no idea why it doesn't work

- name: Show Anchore results
run: for j in `ls ./anchore-reports/*.json`; do echo "---- ${j} ----"; cat ${j}; echo; done
if: ${{ always() }}

- name: Upload Anchore results
uses: actions/upload-artifact@v2
with:
name: anchore-reports
path: ./anchore-reports/
if: ${{ always() }}

- name: Fail on any vulnerability
run: jq -e '.vulnerabilities | any( . ) | not' anchore-reports/vulnerabilities.json
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ lerna-debug.log*
.npm
.eslintcache
lunr-index.json
build.txt

# Package files
*.jar
Expand Down
4 changes: 4 additions & 0 deletions .husky/post-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run validate:commit
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ node_modules
flow-typed
coverage
dist
helm
tilt_modules
5 changes: 5 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[FORMAT]
indent-string=\t

[MESSAGES CONTROL]
disable=C0103,C0111,C0301,R0902,R0903,R0904,R1723,W0703
3 changes: 3 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@
docs
images
node_modules
tilt_modules
k8s
helm
reports
scripts
Empty file added .tiltignore
Empty file.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [0.0.0](https://github.com/AlexRogalskiy/scala-patterns/compare/v1.0.1...v0.0.0) (2021-08-04)
# [0.0.0](https://github.com/AlexRogalskiy/scala-patterns/compare/v1.0.1...v0.0.0) (2021-08-11)



Expand Down

0 comments on commit 3345ab4

Please sign in to comment.