Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alvarogarciapiz/gawg-validate-build
This action belongs to the GAWG workflow and is used to validate the configurations, Dockerfile, secrets, deployment, and runner.
https://github.com/alvarogarciapiz/gawg-validate-build
actions gawg workflows
Last synced: about 1 month ago
JSON representation
This action belongs to the GAWG workflow and is used to validate the configurations, Dockerfile, secrets, deployment, and runner.
- Host: GitHub
- URL: https://github.com/alvarogarciapiz/gawg-validate-build
- Owner: alvarogarciapiz
- License: other
- Created: 2024-08-31T07:43:18.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-09-20T14:44:42.000Z (about 2 months ago)
- Last Synced: 2024-09-25T15:37:13.476Z (about 2 months ago)
- Topics: actions, gawg, workflows
- Homepage:
- Size: 43 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# GAWG Validate Build
This GitHub Action belongs to the GAWG workflow and is used to validate the configurations, Dockerfile, secrets, deployment, and runner.
## Author
Γlvaro GarcΓa Pizarro
## Inputs
- **technology** (string): Technology to validate. For example, nodejs, python, etc.
- **docker** (boolean): Flag to validate the Dockerfile. Default: `false`.
- **self-hosted-runner** (boolean): Flag to validate the self-hosted runner. Default: `false`.
- **deployment** (string): Deployment type. For example, kubernetes, helm, etc.## Outputs
- **JSON** (string): JSON String containing the values of the deployment.yml file.
## Usage
```yaml
name: GAWG Validate Buildon: [push]
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2- name: GAWG Validate Build
uses: ./
with:
technology: 'nodejs'
docker: true
self-hosted-runner: false
deployment: 'kubernetes'# gawg-validate-build
```## Steps
1. **GAWG Information**:
- Prints information about the action and the inputs provided.2. **Technology Validation**:
- Validates the presence of necessary files for the specified technology (e.g., `package.json` for Node.js, `requirements.txt` for Python, `pom.xml` for Java).3. **Dockerfile Validation**:
- Checks if a `Dockerfile` is present if Docker validation is enabled.4. **Self-hosted Runner Validation**:
- Checks if the necessary technology commands are installed on the self-hosted runner.5. **Secrets Validation**:
- Validates the presence of the `TEST_SECRET` secret.6. **Deployment Validation**:
- Placeholder for deployment validation.7. **Summary**:
- Prints a summary of the validation results, including the person who triggered the workflow, the branch used, the trigger event, the workflow run ID, and the execution time.## Note
This action is meant to be used only privately by a GAWG workflow.
## Example Output
```yaml
π All validations passed successfully! | Technology: nodejs, Docker enabled: true, Self-hosted runners: false, Deployment type: kubernetes
π€ Workflow triggered by: github_actor
π Branch: github_ref
β‘ Trigger: github_event_name
π Workflow run ID: github_run_id
π Execution time: date