Skip to content

Commit

Permalink
Merge pull request #25 from nicholasmhughes/copier-profile
Browse files Browse the repository at this point in the history
Migrate to copier profile and centralize workflows
  • Loading branch information
nicholasmhughes authored Jan 1, 2024
2 parents 278e31d + fb9d794 commit 0f6a9cf
Show file tree
Hide file tree
Showing 43 changed files with 1,343 additions and 1,218 deletions.
22 changes: 22 additions & 0 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Autogenerated. Do not edit this by hand, use `copier update`.
---
_commit: 0.2.6
_src_path: https://github.com/lkubb/salt-extension-copier
author: EITR Technologies, LLC
author_email: [email protected]
docs_url: ''
license: apache
loaders:
- engine
- returner
max_salt_version: 3006
no_saltext_namespace: false
package_name: prometheus
project_name: prometheus
python_requires: '3.8'
salt_version: '3005'
source_url: https://github.com/salt-extensions/saltext-prometheus
ssh_fixtures: false
summary: Salt Extension for interacting with Prometheus
tracker_url: https://github.com/salt-extensions/saltext-prometheus/issues
url: https://github.com/salt-extensions/saltext-prometheus
5 changes: 4 additions & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ Please be as specific as possible and give set-up details.
- [ ] container (Kubernetes, Docker, containerd, etc. please specify)
- [ ] or a combination, please be explicit
- [ ] jails if it is FreeBSD
- [ ] classic packaging
- [ ] onedir packaging
- [ ] used bootstrap to install


**Steps to Reproduce the behavior**
Expand All @@ -36,7 +39,7 @@ If applicable, add screenshots to help explain your problem.
<details><summary>salt --versions-report</summary>
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)

```
```yaml
PASTE HERE
```
</details>
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ contact_links:
url: https://web.libera.chat/#salt
about: Please ask and answer questions here.
- name: Security vulnerabilities
email: security@saltstack.com
email: saltproject-security.pdl@broadcom.com
about: Please report security vulnerabilities here.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ A clear and concise description of what the problem is. Ex. I'm always frustrate
What did you expect to see in the documentation that is missing or needs updating?

**Type of documentation**
This could be Salt modules or tutorital topics.
This could be module documentation or a guide.

**Location or format of documentation**
Insert page URL if applicable.

**Additional context**
Add any other context or screenshots about the feature request here.
Add any other context or screenshots here.
13 changes: 13 additions & 0 deletions .github/ISSUE_TEMPLATE/tech-debt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: Tech Debt
about: Issue is related to tech debt. This includes compatibility changes for newer versions of software and OSes that salt interacts with.
title: "[TECH DEBT]"
labels: tech-debt
assignees: ''

---

### Description of the tech debt to be addressed, include links and screenshots

### Versions Report
(Provided by running `salt --versions-report`. Please also mention any differences in master/minion versions.)
19 changes: 19 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Pull Request or Push

on:
push:
branches:
- 'main' # Run on pushes to main
tags-ignore:
- '*' # Ignore pushes to tags
pull_request:

jobs:
call_central_workflow:
name: CI
uses: salt-extensions/central-artifacts/.github/workflows/ci.yml@main
with:
setup-vault: true
permissions:
contents: write
pull-requests: read
32 changes: 32 additions & 0 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Tagged Releases

on:
push:
tags:
- "v*" # Only tags starting with "v" for "v1.0.0", etc.

jobs:
get_tag_version:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.get_version.outputs.version }}
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Extract tag name
id: get_version
run: echo "::set-output name=version::$(echo ${GITHUB_REF#refs/tags/v})"

call_central_workflow:
needs: get_tag_version
uses: salt-extensions/central-artifacts/.github/workflows/ci.yml@main
with:
setup-vault: true
release: true
version: ${{ needs.get_tag_version.outputs.version }}
permissions:
contents: write
id-token: write
pull-requests: read
secrets: inherit
Loading

0 comments on commit 0f6a9cf

Please sign in to comment.