Skip to content

Commit

Permalink
changelogs
Browse files Browse the repository at this point in the history
  • Loading branch information
MozeBaltyk committed Jan 5, 2024
1 parent 32cf2b8 commit 9b0dc30
Show file tree
Hide file tree
Showing 3 changed files with 106 additions and 27 deletions.
89 changes: 87 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: Release on Ansible Galaxy
on:
workflow_dispatch:

Expand All @@ -17,4 +17,89 @@ jobs:
- uses: actions/checkout@v4

- name: Update Readme
uses: ./.github/actions/update-readme
uses: ./.github/actions/update-readme

release:
runs-on: ubuntu-latest
if: github.repository == 'mozebaltyk/rkub'
permissions:
actions: write
checks: write
contents: write
deployments: write
packages: write
pages: write
outputs:
tag_version: ${{ steps.get_version.outputs.TAG_VERSION }}
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.TRIGGERING_PAT }}

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
cache: 'pip'

- name: Get current version
id: get_version
run: echo "::set-output name=TAG_VERSION::$(grep version galaxy.yml | awk -F'"' '{ print $2 }')"

- name: Check if tag exists
id: check_tag
run: echo "::set-output name=TAG_EXISTS::$(git tag | grep ${{ steps.get_version.outputs.TAG_VERSION }})"

- name: Fail if tag exists
if: ${{ steps.get_version.outputs.TAG_VERSION == steps.check_tag.outputs.TAG_EXISTS }}
uses: actions/github-script@v3
with:
script: |
core.setFailed('Release tag already exists')
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ansible-core antsibull
sudo apt --fix-missing update
sudo apt install -y sed hub
- name: Build collection
run: |
ansible-galaxy collection build .
- name: Create changelog and documentation
uses: ansible-middleware/collection-docs-action@main
with:
collection_fqcn: mozebaltyk.rkub
collection_repo: mozebaltyk/rkub
dependencies: false
commit_changelog: true
commit_ghpages: false
changelog_release: true
generate_docs: false
token: ${{ secrets.GITHUB_TOKEN }}

- name: Publish collection
env:
ANSIBLE_GALAXY_API_KEY: ${{ secrets.ANSIBLE_GALAXY_API_KEY }}
run: |
ansible-galaxy collection publish *.tar.gz --api-key $ANSIBLE_GALAXY_API_KEY
- name: Create release tag
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git tag -a ${{ steps.get_version.outputs.TAG_VERSION }} -m "Release v${{ steps.get_version.outputs.TAG_VERSION }}" || true
git push origin --tags
- name: Publish Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.get_version.outputs.TAG_VERSION }}
files: "*.tar.gz"
body_path: gh-release.md
42 changes: 18 additions & 24 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,36 +10,30 @@ Versions:
- longhorn version: 1.5.3
- neuvector version: 2.6.6
<!-- End Release -->
<!-- Features -->
<!-- End Features -->

## 1.0.1 (2024-01-02)

Version:
- rke2 version: 1.26.11
- cert-manager version: 1.13.3
- rancher version: 2.8.0
- longhorn version: 1.5.3
- neuvector version: 2.6.6

Features:
- Make "master_ip" and "domain" parametrable
<!-- Features -->
Features:
- Install RKE2 one controler and several workers (currently no HA):
- Add nerdctl.
- Setup an admin on master node (kuberoot).
- Deploy local registry and images loaded inside.
- Setup firewalld rules if needed.
- Make "master_ip" and "domain" parametrable
- Script to uninstall everything.
- Deploy longhorn with custom datapath
- Deploy Rancher with custom password
- Deploy Neuvector
- Github workflow to release
<!-- End Features -->

<!-- Fix -->
Fix:
- Firewalld conditions to apply only when running.
- Correct names and tasks order.

## 1.0.0 (2023-12-31)
- Correct names and tasks order.
<!-- End Fix -->

**Init Ansible Collection**
<!-- Bugfix -->
<!-- End Bugfix -->

Features:
- Install RKE2 one controler and several workers (currently no HA).
- with nerdctl.
- with an admin setup on master node (kuberoot).
- with local registry and images loaded inside.
- with firewalld rules if needed.
- with script to uninstall.
<!-- Security -->
<!-- End Security -->
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
### REQUIRED
namespace: mozebaltyk
name: rkub
version: 1.0.2
version: 1.0.3

readme: README.md

Expand Down

0 comments on commit 9b0dc30

Please sign in to comment.