Skip to content

Commit

Permalink
Better deployment (#2047)
Browse files Browse the repository at this point in the history
  • Loading branch information
Uros Marolt committed Jan 9, 2024
1 parent f2a3eca commit e61003c
Show file tree
Hide file tree
Showing 52 changed files with 27,306 additions and 140 deletions.
21 changes: 21 additions & 0 deletions .github/actions/node/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
plugins: ['@typescript-eslint', 'prettier'],
parserOptions: {
ecmaVersion: 2022,
sourceType: 'module',
},
env: {
es6: true,
node: true,
},
rules: {
'prettier/prettier': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'off',
},
}
3 changes: 3 additions & 0 deletions .github/actions/node/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
dist/
out/
3 changes: 3 additions & 0 deletions .github/actions/node/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dist/
.eslintrc.cjs
.prettierrc.cjs
7 changes: 7 additions & 0 deletions .github/actions/node/.prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
singleQuote: true,
arrowParens: 'always',
printWidth: 100,
trailingComma: 'all',
semi: false,
}
20 changes: 20 additions & 0 deletions .github/actions/node/builder/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Deployer
description: Custom Deployer Action

inputs:
services:
description: Services to deploy
required: true
tag:
description: Tag for images
required: false
default: ${{ github.sha }}
steps:
description: Steps to run
required: false
default: build push deploy

runs:
using: node16
main: index.js
post: index.js
Loading

0 comments on commit e61003c

Please sign in to comment.