Skip to content

Commit

Permalink
chore: release 1.7.0
Browse files Browse the repository at this point in the history
Release-As: 1.7.0
  • Loading branch information
moabu committed May 6, 2022
1 parent 955df82 commit 7066ae2
Show file tree
Hide file tree
Showing 9 changed files with 65 additions and 118 deletions.
8 changes: 0 additions & 8 deletions .github/GLUUFEDERATION_CODEOWNERS/gluu-admin-ui_CODEOWNERS

This file was deleted.

14 changes: 11 additions & 3 deletions .github/docker/central_docker_build_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
branches:
- master
- main
- 4.3
- "4.4"
# below branch is triggered by jenkins which triggers dev image
- update-source-build-date
workflow_dispatch:
Expand All @@ -21,14 +21,22 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Install dependencies
run: |
sudo apt-get update
sudo python3 -m pip install --upgrade pip
sudo pip3 install setuptools --upgrade
sudo pip3 install -r ./automation/requirements.txt
sudo apt-get update
- name: Prepare
id: prep
run: |
MAIN_VERSION=$(python3 -c 'import __version__ ; print(str(__version__.__version__)[:5])')
MAIN_VERSION=$(python3 -c "from dockerfile_parse import DockerfileParser ; dfparser = DockerfileParser('./') ; print(dfparser.labels['version'])")
DOCKER_IMAGE=gluufederation/$(python3 -c 'import os ; REPO = os.environ.get("GITHUB_REPOSITORY") ; print(str(REPO).split("/")[1][7:])')
VERSION=${MAIN_VERSION}_dev
if [[ $GITHUB_REF == refs/tags/* ]]; then
VERSION=${GITHUB_REF#refs/tags/}
VERSION=${GITHUB_REF#refs/tags/v}
fi
TAGS="${DOCKER_IMAGE}:${VERSION}"
if [[ $VERSION =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\_[a-b]{1}[0-9]{1,3}$ ]]; then
Expand Down
104 changes: 25 additions & 79 deletions .github/docker/central_docker_release.yml
Original file line number Diff line number Diff line change
@@ -1,93 +1,39 @@
# Please do not attempt to edit this flow without the direct consent from the DevOps team. This file is managed centrally.
# Contact @moabu
name: release
on:
push:
paths:
- __version__.py
branches-ignore:
- master
- main
tags-ignore:
- "*"
branches:
- "4.4"
# below branch is triggered by jenkins which triggers dev image
- update-source-build-date
workflow_dispatch:
jobs:
build:

release-simple-pr:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.7]

fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
- name: Checkout
uses: actions/checkout@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
sudo apt-get update
sudo apt-get install ruby
- name: Checkout code
uses: actions/checkout@master


- name: Get version
id: get_version
run: |
mkdir /home/runner/work/test
cp -r . /home/runner/work/test/
cd /home/runner/work/test/
echo "::set-output name=version::$(python3 -c 'import __version__ ; print(__version__.__version__)')"
echo "::set-output name=pversion::$(python3 -c 'import __version__ ; print(__version__.__previous_version__)')"
echo "::set-output name=gituser::$(python3 -c 'import os ; REPO = os.environ.get("GITHUB_REPOSITORY") ; print(str(REPO).split("/")[0])')"
echo "::set-output name=gitproject::$(python3 -c 'import os ; REPO = os.environ.get("GITHUB_REPOSITORY") ; print(str(REPO).split("/")[1])')"
echo "::set-output name=gitbranch::$(python3 -c 'import os ; BRANCH = os.environ.get("GITHUB_REF") ; print(str(BRANCH).split("/")[2])')"
echo "::set-output name=releasedate::$(date +'%d-%m-%Y')"
fetch-depth: 0

- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v4
with:
gpg_private_key: ${{ secrets.MOAUTO_GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.MOAUTO_GPG_PRIVATE_KEY_PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true

- name: Install Changelog autogenerator
run: |
cd /home/runner/work/test/
sudo gem install github_changelog_generator
github_changelog_generator --user ${{ steps.get_version.outputs.gituser }} --project ${{ steps.get_version.outputs.gitproject }} --date-format "%m/%d/%Y" --header-label "# Release Notes" --output release_notes.md --token ${{ secrets.token }} --include-labels ${{ steps.get_version.outputs.gitbranch }} --since-tag ${{ steps.get_version.outputs.pversion }} --author false
sed -i '$ d' release_notes.md
github_changelog_generator --user ${{ steps.get_version.outputs.gituser }} --project ${{ steps.get_version.outputs.gitproject }} --date-format "%m/%d/%Y" --token ${{ secrets.token }} --author false
sed -i '$ d' CHANGELOG.md
- name: Read CHANGELOG
id: changelog
- name: Configure Git
run: |
release_notes=$(sed -e '1,6d;' /home/runner/work/test/release_notes.md)
release_notes="${release_notes//'%'/'%25'}"
release_notes="${release_notes//$'\n'/'%0A'}"
release_notes="${release_notes//$'\r'/'%0D'}"
echo "::set-output name=body::$release_notes"
cp /home/runner/work/test/CHANGELOG.md .
git config user.name "mo-auto"
git config user.email "[email protected]"
git config --global user.signingkey "${{ steps.import_gpg.outputs.keyid }}"
- name: Create Release
id: create_release
uses: actions/create-release@master
env:
# in order for this to trigger proceeding action the token cannot be github default token.
GITHUB_TOKEN: ${{ secrets.MOWORKFLOWTOKEN }}
- uses: google-github-actions/[email protected]
id: release-please
with:
tag_name: ${{ steps.get_version.outputs.version }}
release_name: ${{ steps.get_version.outputs.version }}
body: |
# Release Notes
## [${{ steps.get_version.outputs.version }}](https://github.com/${{ steps.get_version.outputs.gituser }}/${{ steps.get_version.outputs.gitproject }}/tree/${{ steps.get_version.outputs.version }}) (${{ steps.get_version.outputs.releasedate }})
[Full Changelog](https://github.com/${{ steps.get_version.outputs.gituser }}/${{ steps.get_version.outputs.gitproject }}/compare/${{ steps.get_version.outputs.pversion }}...${{ steps.get_version.outputs.version }})
${{ steps.changelog.outputs.body }}
draft: false
prerelease: false
token: ${{ secrets.MOWORKFLOWTOKEN }}
release-type: simple
4 changes: 1 addition & 3 deletions .github/workflows/central_sync_workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- master
- main
- 4.3
- "4.4"
paths:
- ".github/**"
workflow_dispatch:
Expand All @@ -28,7 +28,6 @@ jobs:
- name: Running General Workflow Sync
env:
REPOSITORIES: |
GluuFederation/gluu-admin-ui
GluuFederation/gluu-passport
GluuFederation/casa
GluuFederation/oxTrust
Expand Down Expand Up @@ -93,7 +92,6 @@ jobs:
GluuFederation/docker-jackrabbit
GluuFederation/docker-fido2
GluuFederation/docker-scim
GluuFederation/docker-cn
WORKFLOW_FILES: |
.github/docker/central_docker_imagescan.yml=.github/workflows/imagescan.yml
.github/docker/central_docker_release.yml=.github/workflows/release.yaml
Expand Down
Binary file modified pygluu/kubernetes/templates/helm/gluu-1.7.0.tgz
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ data:
# [google_spanner_envs] Envs related to using Google Secret Manager to store config and secret layer
GLUU_GOOGLE_SPANNER_INSTANCE_ID: {{ .Values.configmap.cnGoogleSpannerInstanceId | quote }}
GLUU_GOOGLE_SPANNER_DATABASE_ID: {{ .Values.configmap.cnGoogleSpannerDatabaseId | quote }}
SPANNER_EMULATOR_HOST: {{ .Values.configmap.cnGoogleSpannerEmulatorHost | quote }}
# [google_spanner_envs] END
# [google_secret_manager_envs] Envs related to using Google Secret Manager to store config and secret layer
GLUU_SECRET_GOOGLE_SECRET_VERSION_ID: {{ .Values.configmap.cnSecretGoogleSecretVersionId | quote }}
Expand Down
2 changes: 2 additions & 0 deletions pygluu/kubernetes/templates/helm/gluu/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,8 @@ config:
cnGoogleSpannerInstanceId: ""
# -- Google Spanner Database ID. Used only when global.gluuPersistenceType is spanner.
cnGoogleSpannerDatabaseId: ""
# -- Google Spanner Emulator Host. Used only when global.gluuPersistenceType is spanner and during testing if needed.
cnGoogleSpannerEmulatorHost: ""
# [google_spanner_envs] END
# [google_secret_manager_envs] Envs related to using Google Secret Manager to store config and secret layer
# -- Secret version to be used for secret configuration. Defaults to latest and should normally always stay that way. Used only when global.configAdapterName and global.configSecretAdapter is set to google.
Expand Down
Loading

0 comments on commit 7066ae2

Please sign in to comment.