-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
327 additions
and
290 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
--- | ||
|
||
profile: production | ||
|
||
exclude_paths: | ||
- .github | ||
- .manala | ||
|
||
skip_list: | ||
- var-naming[no-role-prefix] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Ansible Galaxy | ||
ANSIBLE_GALAXY_TOKEN_PATH=galaxy_token |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
version: 2 | ||
|
||
updates: | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: weekly |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-24.04 | ||
if: github.event.head_commit.message == 'Release' | ||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set ansible galaxy token | ||
run: | | ||
cat << EOF > galaxy_token | ||
token: ${{ secrets.ANSIBLE_GALAXY_TOKEN }} | ||
EOF | ||
- name: Set up system | ||
uses: ./.manala/github/system/setup | ||
|
||
- name: Get version | ||
id: version | ||
run: | | ||
cat << EOF > $GITHUB_OUTPUT | ||
version=$(make version) | ||
EOF | ||
- name: Build | ||
id: build | ||
run: | | ||
make build VERBOSE=1 | ||
- name: Upload build artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
path: build/manala-roles-${{ steps.version.outputs.version }}.tar.gz | ||
name: manala-roles-${{ steps.version.outputs.version }}.tar.gz | ||
|
||
- name: Publish | ||
id: publish | ||
run: | | ||
make publish VERBOSE=1 | ||
- name: Get Changelog entry | ||
id: changelog | ||
uses: mindsers/changelog-reader-action@v2 | ||
with: | ||
path: CHANGELOG.md | ||
version: ${{ steps.version.outputs.version }} | ||
|
||
- name: Create GitHub Release | ||
id: release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
name: ${{ steps.version.outputs.version }} | ||
tag: ${{ steps.version.outputs.version }} | ||
body: ${{ steps.changelog.outputs.changes }} | ||
artifacts: build/manala-roles-${{ steps.version.outputs.version }}.tar.gz | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
skipIfReleaseExists: true | ||
|
||
- name: Notify Slack - Status | ||
uses: act10ns/slack@v2 | ||
with: | ||
status: ${{ job.status }} | ||
steps: ${{ toJson(steps) }} | ||
channel: '#collection_release' | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
if: always() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.env | ||
manala-roles-* | ||
build/ | ||
.env.local | ||
galaxy_token |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.