Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
Stop building the container
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea committed Mar 21, 2022
1 parent 89eb7de commit 93dccd9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 92 deletions.
15 changes: 0 additions & 15 deletions Dockerfile

This file was deleted.

44 changes: 4 additions & 40 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,47 +22,11 @@ jobs:
- uses: actions/checkout@v2

- name: Lint Ansible Playbook
# replace "master" with any valid ref
uses: ansible/ansible-lint-action@master
# replace `main` with any valid ref, or tags like `v6`
uses: ansible/ansible-lint-action@main
# optional:
with:
# [required]
# Paths to ansible files (i.e., playbooks, tasks, handlers etc..)
# or valid Ansible directories according to the Ansible role
# directory structure.
# If you want to lint multiple ansible files, use the following syntax
# targets: |
# playbook_1.yml
# playbook_2.yml
targets: ""
# [optional]
# Arguments to override a package and its version to be set explicitly.
# Must follow the example syntax.
override-deps: |
ansible==2.9
ansible-lint==4.2.0
# [optional]
# Arguments to be passed to the ansible-lint

# Options:
# -q quieter, although not silent output
# -p parseable output in the format of pep8
# --parseable-severity parseable output including severity of rule
# -r RULESDIR specify one or more rules directories using one or
# more -r arguments. Any -r flags override the default
# rules in ansiblelint/rules, unless -R is also used.
# -R Use default rules in ansiblelint/rules in addition to
# any extra
# rules directories specified with -r. There is no need
# to specify this if no -r flags are used
# -t TAGS only check rules whose id/tags match these values
# -x SKIP_LIST only check rules whose id/tags do not match these
# values
# --nocolor disable colored output
# --exclude=EXCLUDE_PATHS
# path to directories or files to skip. This option is
# repeatable.
# -c C Specify configuration file to use. Defaults to ".ansible-lint"
args: ""
args: "" # args to pass to ansible-lint command
```
> TIP: N.B. Use `ansible/ansible-lint-action@v4.1.0` or any other valid tag, or branch, or commit SHA instead of `v4.1.0` to pin the action to use a specific version.
Expand Down
46 changes: 9 additions & 37 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,46 +5,18 @@ author: Ansible by Red Hat <info@ansible.com>
inputs:
args:
description: |
Arguments to be passed to the ansible-lint
Options:
-q quieter, although not silent output
-p parseable output in the format of pep8
--parseable-severity parseable output including severity of rule
-r RULESDIR specify one or more rules directories using one or
more -r arguments. Any -r flags override the default
rules in ansiblelint/rules, unless -R is also used.
-R Use default rules in ansiblelint/rules in addition to
any extra
rules directories specified with -r. There is no need
to specify this if no -r flags are used
-t TAGS only check rules whose id/tags match these values
-x SKIP_LIST only check rules whose id/tags do not match these
values
--nocolor disable colored output
--exclude=EXCLUDE_PATHS
path to directories or files to skip. This option is
repeatable.
-c C Specify configuration file to use. Defaults to ".ansible-lint"
Arguments to be passed to the ansible-lint.
required: false
targets:
description: |
Paths to ansible files (i.e., playbooks, tasks, handlers etc..)
or valid Ansible directories according to the Ansible role
directory structure.
required: true
override-deps:
default: ""
description: |
override-deps allows pinning pip packages and there versions. This allows to pin to a target
package version in order to maintain consistency with local development.
required: false
runs:
using: docker
image: Dockerfile
image: quay.io/ansible/creator-ee:v0.3.1
entrypoint: /usr/local/bin/ansible-lint
env:
# These tell ansible-lint to use github compatible annotation format:
GITHUB_ACTIONS: "true"
GITHUB_WORKFLOW: "{{ github.workflow.name }}"
post-entrypoint: /bin/bash -c "ansible-lint --version"
args:
- -vvv
- ${{ inputs.args }}
env:
TARGETS: ${{ inputs.targets }}
OVERRIDE: ${{ inputs.override-deps }}

0 comments on commit 93dccd9

Please sign in to comment.