mirror of
https://github.com/ZwareBear/JFrog-Cloud-Installers.git
synced 2026-01-22 02:06:58 -06:00
Checking in code for rt 7.27.10 and xray 3.35.0 version
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
# asciidoctor image
|
||||
FROM asciidoctor/docker-asciidoctor
|
||||
|
||||
LABEL "version"="1.0"
|
||||
|
||||
# Setup entrypoint
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
# Asciidoctor GitHub Action
|
||||
|
||||
To use this action add the below config to **.github/workflows/adocs-build.yml**
|
||||
|
||||
```
|
||||
name: build adocs
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
jobs:
|
||||
adoc_build:
|
||||
runs-on: ubuntu-18.04
|
||||
name: asciidoctor -D docs --backend=html5 -o index.html -a toc2 docs/index.adoc
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Get build container
|
||||
id: adocbuild
|
||||
uses: path-to-/.actions/asciidoctor-action
|
||||
with:
|
||||
program: "asciidoctor -D docs --backend=html5 -o index.html docs/index.adoc"
|
||||
- name: Print execution time
|
||||
run: echo "Time ${{ steps.adocbuild.outputs.time }}"
|
||||
- name: Deploy docs to ghpages
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
||||
publish_branch: gh-pages
|
||||
publish_dir: ./
|
||||
```
|
||||
@@ -0,0 +1,20 @@
|
||||
name: 'build asciidoctor action'
|
||||
author: 'Tony Vattathil'
|
||||
description: 'asciidoctor Build action'
|
||||
|
||||
branding:
|
||||
icon: 'file'
|
||||
color: 'green'
|
||||
inputs:
|
||||
program:
|
||||
description: 'asciidoctor '
|
||||
required: true
|
||||
default: 'asciidoctor -D docs --backend=html5 -o index.html -a toc2 ddocs/index.adoc'
|
||||
runs:
|
||||
using: 'docker'
|
||||
image: 'Dockerfile'
|
||||
args:
|
||||
- ${{ inputs.program }}
|
||||
outputs:
|
||||
time:
|
||||
description: 'Action Completed'
|
||||
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
# entrypoint.sh
|
||||
set -e
|
||||
bash -c "$@"
|
||||
@@ -0,0 +1,4 @@
|
||||
FROM python:3.8-buster
|
||||
RUN pip install cfn-lint
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
@@ -0,0 +1,19 @@
|
||||
name: 'Customized cfn-lint action for AWS Quick Start org use'
|
||||
author: 'Andrew Glenn'
|
||||
|
||||
branding:
|
||||
icon: 'file-text'
|
||||
color: 'green'
|
||||
|
||||
inputs:
|
||||
program:
|
||||
description: "cfnlint"
|
||||
required: true
|
||||
runs:
|
||||
using: 'docker'
|
||||
image: 'Dockerfile'
|
||||
args:
|
||||
- ${{ inputs.program }}
|
||||
outputs:
|
||||
time:
|
||||
description: 'Action Completed'
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
bash -c "$@"
|
||||
@@ -0,0 +1,24 @@
|
||||
name: main-documentation
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- develop
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-18.04
|
||||
name: lint CFN templates
|
||||
steps:
|
||||
- name: Checkout (develop)
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
path: checked_out_repo
|
||||
- name: Checkout (custom rules)
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
path: team_custom_rules
|
||||
- name: Run local actions
|
||||
id: cfnlint_custom
|
||||
uses: ./docs/boilerplate/.actions/cfnlint-action
|
||||
with:
|
||||
program: "./docs/boilerplate/.utils/cfnlint_custom.sh"
|
||||
@@ -0,0 +1,38 @@
|
||||
name: main-documentation
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
jobs:
|
||||
build-adocs:
|
||||
runs-on: ubuntu-18.04
|
||||
name: asciidoc builder
|
||||
steps:
|
||||
- name: Checkout (main)
|
||||
uses: actions/checkout@v2
|
||||
- name: Get new doc updates
|
||||
run: |
|
||||
wget https://raw.githubusercontent.com/aws-quickstart/quickstart-documentation-base-common/main/.utils/configure_git_env.sh
|
||||
chmod +x configure_git_env.sh
|
||||
./configure_git_env.sh
|
||||
- name: Setup python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.x
|
||||
- name: Generate dynamic content.
|
||||
run: ./docs/boilerplate/.utils/generate_dynamic_content.sh
|
||||
- name: Run local actions
|
||||
id: adoc
|
||||
uses: ./docs/boilerplate/.actions/asciidoctor-action
|
||||
with:
|
||||
program: "./docs/boilerplate/.utils/build_docs.sh"
|
||||
- name: Stage and Push changes to gh-pages branch.
|
||||
run: ./docs/boilerplate/.utils/commit_and_push_to_ghpages.sh
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
- name: Configure gh-pages source and trigger build if necessary.
|
||||
run: ./docs/boilerplate/.utils/config_and_trigger_gh-pages.sh
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
Reference in New Issue
Block a user