chore: add repository config

This commit is contained in:
Alexander Navarro 2024-11-04 15:39:34 -03:00
parent 3beb696eb5
commit 7f4987b54c
Signed by untrusted user who does not match committer: anavarro
GPG key ID: 6426043E9FA3E3B5
4 changed files with 218 additions and 1 deletions

View file

@ -0,0 +1,59 @@
name: Feature request
about: Request a new feature to be added
title: '[Feature]: '
ref: 'development'
assignees:
- aleidk
labels:
- Priority/Low
- Severity/Low
- Status/Pending
- Type/Feature
body:
- type: markdown
attributes:
value: |
We appreciate your feedback on how to improve this project. Please be sure to include as much details and any resources if possible!
- type: dropdown
attributes:
multiple: false
label: Type of Feature
default: 0
options:
- "✨ New Feature"
- "📝 Documentation"
- "🎨 Style and UI"
- "🔨 Code Refactor"
- "⚡ Performance Improvements"
- "✅ New Test"
validations:
required: true
- type: textarea
id: description
attributes:
label: Description
description: Give us a brief description of the feature or enhancement you would like.
placeholder: As <who> <when> <where>, I want <what> because <why>
validations:
required: true
- type: textarea
id: completion-criteria
attributes:
label: Completion criteria
description: Tell us what this feature needs to do to be considered completed using verificable items.
placeholder: |
- [ ] Read the configuration file using the yaml format
- [ ] Fetch data from an the json-placehoder API
- [ ] Save the data in the database
validations:
required: true
- type: textarea
id: additional-information
attributes:
label: Additional Information
description: |
Please leave any additional information on the feature request that could be helpful! like proposed solutions, examples, links, screenshots, etc.

View file

@ -0,0 +1,93 @@
name: Bug report
about: Something isn't working as expected
title: '[Bug]: '
ref: 'development'
assignees:
- aleidk
labels:
- Priority/Low
- Severity/Low
- Status/Pending
- Type/Bug
body:
- type: markdown
attributes:
value: |
We appreciate your feedback on how to improve this project. Please be sure to include as much details and any resources if possible!
- type: checkboxes
id: terms
attributes:
label: Before submitting, I checked...
options:
- label: The [issue tracker](../) in case this has been reported before
required: true
- label: The severity of the bug
required: true
validations:
required: true
- type: textarea
id: expected
attributes:
label: "Expected behavior:"
description: A clear and concise description of what you expected to happen. Include screenshots and/or logs if relevant.
placeholder: As <who> <when> <where>, I want <what> because <why>
validations:
required: true
- type: textarea
id: current
attributes:
label: "Current behavior:"
description: A clear and concise description of what actually happened. Include screenshots and/or logs if relevant.
placeholder: As <who> <when> <where>, I want <what> because <why>
validations:
required: true
- type: textarea
id: reproduce
attributes:
label: "Steps to reproduce:"
description: Anambiguous set of steps to reproduce this bug. Include code snippets if relevant.
placeholder: |
1. Use x argument / navigate to
2. Fill this information
3. Go to...
4. See error
validations:
required: true
- type: dropdown
attributes:
multiple: false
label: Is this a regresion?
description: Did this behaviour used to work in the previous version?
default: 0
options:
- "I don't know"
- "This is a new feature"
- "Yes"
- "No"
validations:
required: true
- type: textarea
id: environment
attributes:
label: "Your environment:"
description: Tell us details about the environment you experienced the bug in. A minimal/isolated enviroment to reproduce would be apreciated.
placeholder: |
- Version used:
- Browser Name and version:
- Operating System and version (desktop or mobile):
- Link to your project:
validations:
required: false
- type: textarea
id: additional-information
attributes:
label: "Additional Information:"
description: |
Please leave any additional information on the bug that could be helpful! like proposed solutions, examples, links, screenshots, etc.

View file

@ -0,0 +1,66 @@
name: Publish image
on:
push:
paths:
- 'boxes/**'
workflow_dispatch:
jobs:
generate-matrix:
name: Generate job matrices
runs-on: host
outputs:
boxes: ${{ steps.changed-files.outputs.all_changed_files }}
boxes-count: ${{ steps.changed-files.outputs.all_changed_files_count }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: List changed files
id: changed-files
uses: tj-actions/changed-files@v45.0.3
with:
matrix: true
diff_relative: true
dir_names: true
dir_names_exclude_current_dir: true
dir_names_max_depth: 2
files: boxes/**
- name: Output changes
run: |
echo 'Files changed: ${{ steps.changed-files.outputs.all_changed_files_count }}'
echo 'List: ${{ steps.changed-files.outputs.all_changed_files }}'
create-docker-images:
needs: generate-matrix
runs-on: host
strategy:
matrix:
box: ${{ fromJson(needs.generate-matrix.outputs.boxes) }}
max-parallel: 4
fail-fast: false
if: ${{ needs.generate-matrix.outputs.boxes-count > 0 }}
steps:
- name: Print variables
run: |
echo 'Building image in context: ${{ toJson(matrix) }}'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: git.alecodes.page
username: ${{ vars.CONTAINER_REGISTRY_USER }}
password: ${{ secrets.CONTAINER_REGISTRY_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: true
context: "{{defaultContext}}:${{ matrix.box }}"
tags: |
git.alecodes.page/alecodes/devbox:latest