-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
901fafb
commit f3b6717
Showing
9 changed files
with
105 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/.git | ||
/.github |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 4 | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Build docker image | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build-action: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Build action image | ||
run: docker build ./ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: build doctum docs | ||
on: [push] | ||
|
||
jobs: | ||
sync: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: build doctum docs | ||
uses: sudo-bot/action-doctum@v5 | ||
with: | ||
config-file: doctum.php | ||
method: "update" | ||
cli-args: "--output-format=github --no-ansi --no-progress" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM php:cli-alpine | ||
|
||
ARG RELEASE_VERSION=latest | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
|
||
ADD https://doctum.long-term.support/releases/${RELEASE_VERSION}/doctum.phar /bin/doctum | ||
|
||
RUN echo "Downloaded release version: ${RELEASE_VERSION}" && chmod +x /bin/doctum && php /bin/doctum --version | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: "Use Doctum" | ||
author: williamdes | ||
description: "Use Doctum without having to install it" | ||
inputs: | ||
config-file: | ||
description: "The configuration file" | ||
required: true | ||
method: | ||
description: "parse, render or update" | ||
required: true | ||
cli-args: | ||
description: "Command line arguments" | ||
default: '--output-format=github --no-ansi --no-progress' | ||
required: false | ||
docker-version: | ||
description: "The docker image to use" | ||
default: 'latest' | ||
required: false | ||
|
||
branding: | ||
icon: "book" | ||
color: blue | ||
runs: | ||
using: "docker" | ||
image: "docker://botsudo/action-doctum:${{ inputs.docker-version }}" | ||
args: | ||
- "${{ inputs.config-file }}" | ||
- "${{ inputs.method }}" | ||
- "${{ inputs.cli-args }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh -l | ||
## | ||
# @license http://unlicense.org/UNLICENSE The UNLICENSE | ||
# @author William Desportes <[email protected]> | ||
## | ||
|
||
set -e | ||
|
||
CONFIG_FILE="$1" | ||
METHOD="$2" | ||
CLI_ARGS="$3" | ||
|
||
echo "::debug CONFIG_FILE: ${CONFIG_FILE}" | ||
echo "::debug METHOD: ${METHOD}" | ||
echo "::debug CLI_ARGS: ${CLI_ARGS}" | ||
|
||
php /bin/doctum ${METHOD} ${CLI_ARGS} ${CONFIG_FILE} |