Skip to content

Instantly share code, notes, and snippets.

FROM fluent/fluentd:v1.11-1
MAINTAINER Al-waleed Shihadeh <[email protected]>
COPY ./*.conf /fluentd/etc/
COPY entrypoint.sh /bin/
USER root
RUN apk add --update --virtual .build-deps \
sudo build-base ruby-dev \
&& sudo gem install \
I, [2020-07-10T15:04:14.650546 #11] INFO -- : method=GET path=/test format=json controller=TESTApi::V1::TestChecksController action=index status=200 duration=140.17
name: 'Trigger Jenkins Multiple Jobs'
description: 'Triggering Jenkins Job through the API'
author: 'Bo-Yi Wu'
inputs:
url:
description: 'jenkins base url'
user:
description: 'jenkins username'
token:
description: 'jenkins api token'
@wshihadeh
wshihadeh / Dockerfile
Created May 18, 2020 16:01
Dockerfile
FROM docker:stable
LABEL 'name'='Docker Deployment Action'
LABEL 'maintainer'='Al-waleed Shihadeh <[email protected]>'
LABEL 'com.github.actions.name'='Docker Deployment'
LABEL 'com.github.actions.description'='supports docker-compose and Docker Swarm deployments'
LABEL 'com.github.actions.icon'='send'
LABEL 'com.github.actions.color'='green'
RSpec:
enabled: true
description: 'Run RSpec test suite'
required_executable: 'rspec'
RubySyntax:
enabled: true
description: 'Check ruby syntax'
required_executable: 'ruby'
command: [
'ruby',
'-e',
'ARGV.each { |applicable_file| ruby_c_output = `ruby -c #{applicable_file}`; puts ruby_c_output unless $?.success? }'
]
include:
RuboCop:
enabled: false
quiet: false
description: 'Analyze with RuboCop'
required_executable: 'rubocop'
flags: ['--format=emacs', '--force-exclusion', '--display-cop-names']
install_command: 'gem install rubocop'
include:
- '**/*.gemspec'
- '**/*.rake'
Reek:
enabled: false
description: 'Analyze with Reek'
required_executable: 'reek'
flags: ['--single-line', '--no-color', '--force-exclusion']
install_command: 'gem install reek'
include:
- '**/*.gemspec'
- '**/*.rake'
- '**/*.rb'
@wshihadeh
wshihadeh / RailsSchemaUpToDate.yaml
Created May 12, 2020 08:18
RailsSchemaUpToDate
RailsSchemaUpToDate:
enabled: false
description: 'Check if database schema is up to date'
include:
- 'db/migrate/*.rb'
- 'db/schema.rb'
- 'db/structure.sql'
@wshihadeh
wshihadeh / RailsBestPractices.yaml
Created May 12, 2020 08:15
RailsBestPractices
RailsBestPractices:
enabled: false
description: 'Analyze with RailsBestPractices'
required_executable: 'rails_best_practices'
flags: ['--without-color']
install_command: 'gem install rails_best_practices'