Skip to content

Commit

Permalink
Merge pull request #36 from opf/feature/helm-signing
Browse files Browse the repository at this point in the history
Sign helm chart with Operations PGP
  • Loading branch information
machisuji authored Nov 13, 2023
2 parents 89076c9 + 27dc346 commit 576b37d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/cr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# cr.yaml
# Use PGP signatures
sign: true
# UID of the GPG key to use
key: "[email protected]"
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,26 @@ jobs:
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Prepare GPG key
run: |
gpg_dir=.cr-gpg
mkdir "$gpg_dir"
keyring="$gpg_dir/secring.gpg"
base64 -d <<< "$GPG_OPERATIONS_BASE64" > "$keyring"
passphrase_file="$gpg_dir/passphrase"
echo "$GPG_OPERATIONS_PASSPHRASE" > "$passphrase_file"
echo "CR_PASSPHRASE_FILE=$passphrase_file" >> "$GITHUB_ENV"
echo "CR_KEYRING=$keyring" >> "$GITHUB_ENV"
env:
GPG_OPERATIONS_BASE64: "${{ secrets.GPG_OPERATIONS_BASE64 }}"
GPG_OPERATIONS_PASSPHRASE: "${{ secrets.GPG_OPERATIONS_PASSPHRASE }}"

- name: Install Helm
uses: azure/setup-helm@v3

- name: Run chart-releaser
uses: helm/[email protected]
with:
config: cr.yaml
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
2 changes: 1 addition & 1 deletion charts/openproject/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ home: "https://www.openproject.org/"
icon: "https://www.openproject.org/assets/images/press/openproject-icon-original-color-41055eb6.png"
type: "application"
appVersion: "13"
version: "2.5.1"
version: "2.6.0"
maintainers:
- name: OpenProject
url: https://github.com/opf/helm-charts
Expand Down

0 comments on commit 576b37d

Please sign in to comment.