Skip to content

Commit

Permalink
build: improved docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad Nassri committed Sep 4, 2022
1 parent 725c70d commit 15d294d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
4 changes: 4 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
GITHUB_EVENT_PATH=/github/workspace/action/test/fixtures/payload.json
GITHUB_EVENT_NAME=push
INPUT_CONFIG=/github/workspace/.semantic.json
GITHUB_REPOSITORY=ahmadnassri/action-semantic-release
44 changes: 20 additions & 24 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,34 @@
version: '3.8'
# ---------------------------------------------------- #
# Note: this file originates in template-action-docker #
# ---------------------------------------------------- #

services:
# ---- super-linter ---- #
# ---- mega-linter ---- #
lint:
image: github/super-linter:v4
profiles: ["dev"]
image: oxsecurity/megalinter-javascript:v6
volumes:
- ./:/tmp/lint
environment:
RUN_LOCAL: 'true'
LOG_LEVEL: 'ERROR'
MULTI_STATUS: 'false'
MEGALINTER_CONFIG: .github/linters/.mega-linter.yml
REPORT_OUTPUT_FOLDER: none
VALIDATE_ALL_CODEBASE: true

# ---- readme generator ---- #
readme:
image: pandoc/core:2.11.4
profiles: ["dev"]
image: pandoc/minimal:2.18.0
volumes:
- ./:/data
command: >-
--metadata-file=colophon.yml
--template=docs/README.template
--output=README.md
--from=gfm
--to=gfm
--fail-if-warnings
--wrap=preserve
docs/README.md
command: --defaults=.pandoc.yml

test:
# ---- app ---- #
app:
profiles: ["app"]
privileged: true
build: .
tty: true
working_dir: /github/workspace
volumes:
- type: bind
source: ./action
target: /action/
working_dir: /action
entrypoint: npm run
command: test
- ./:/github/workspace
env_file:
- .env

0 comments on commit 15d294d

Please sign in to comment.