Skip to content

Commit

Permalink
Merge pull request #42 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 9f6378f + ebd0280 commit 49102d0
Show file tree
Hide file tree
Showing 90 changed files with 1,980 additions and 2,430 deletions.
20 changes: 20 additions & 0 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# 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: devops@eitr.tech
docs_url: ''
license: apache
loaders: []
max_salt_version: 3006
no_saltext_namespace: false
package_name: azurerm
project_name: azurerm
python_requires: '3.8'
salt_version: '3005'
source_url: https://github.com/salt-extensions/saltext-azurerm
ssh_fixtures: false
summary: Salt Extension for interacting with Microsoft Azure
tracker_url: https://github.com/salt-extensions/saltext-azurerm/issues
url: https://github.com/salt-extensions/saltext-azurerm
7 changes: 5 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: Bug report
about: Create a report to help us improve
title: "[BUG]"
labels: bug, needs triage
labels: bug, needs-triage
assignees: ''

---
Expand All @@ -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.
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: Docs
about: Issue related to Salt Documentation
title: "[DOCS]"
labels: documentation, needs triage
labels: documentation, needs-triage
assignees: ''

---
Expand All @@ -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.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: Feature request
about: Suggest an idea for this project
title: "[FEATURE REQUEST]"
labels: enhancement, needs triage
labels: feature, needs-triage
assignees: ''

---
Expand Down
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 49102d0

Please sign in to comment.