Skip to content

Commit

Permalink
chore(ci): Reconcile keyfactor workflows and custom workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
m8rmclaren committed Mar 29, 2024
1 parent c07ec19 commit 55cbe56
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 11 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml → .github/workflows/helm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build and Release Helm Chart
on:
pull_request:
branches:
- 'v*'
- 'release-*'
types:
# action should run when the pull request is closed
# (regardless of whether it was merged or just closed)
Expand Down Expand Up @@ -36,14 +36,14 @@ jobs:
# Set version from DOCKER_METADATA_OUTPUT_VERSION as environment variable
- name: Set Version
run: |
echo "VERSION=${DOCKER_METADATA_OUTPUT_VERSION:1}" >> $GITHUB_ENV
echo "VERSION=${DOCKER_METADATA_OUTPUT_VERSION:8}.0" >> $GITHUB_ENV # Eventually will build this into Keyfactor bootstrap
# Change version and appVersion in Chart.yaml to the tag in the closed PR
- name: Update Helm App/Chart Version
shell: bash
run: |
sed -i "s/^version: .*/version: ${{ env.VERSION }}/g" deploy/charts/ejbca-cert-manager-issuer/Chart.yaml
sed -i "s/^appVersion: .*/appVersion: \"${{ env.DOCKER_METADATA_OUTPUT_VERSION }}\"/g" deploy/charts/ejbca-cert-manager-issuer/Chart.yaml
sed -i "s/^version: .*/version: ${{ env.VERSION }}/g" deploy/charts/ejbca-k8s-csr-signer/Chart.yaml
sed -i "s/^appVersion: .*/appVersion: \"v${{ env.VERSION }}\"/g" deploy/charts/ejbca-k8s-csr-signer/Chart.yaml
# Setup Helm
# https://github.com/Azure/setup-helm
Expand All @@ -65,4 +65,4 @@ jobs:
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
charts_dir: deploy/charts
charts_dir: deploy/charts
19 changes: 19 additions & 0 deletions .github/workflows/keyfactor-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Keyfactor Release Workflow

on:
workflow_dispatch:
pull_request:
types: [opened, closed, synchronize, edited, reopened]
push:
create:
branches:
- 'release-*.*'

jobs:
call-starter-workflow:
uses: keyfactor/actions/.github/workflows/starter.yml@v2
secrets:
token: ${{ secrets.V2BUILDTOKEN}}
APPROVE_README_PUSH: ${{ secrets.APPROVE_README_PUSH}}
gpg_key: ${{ secrets.KF_GPG_PRIVATE_KEY }}
gpg_pass: ${{ secrets.KF_GPG_PASSPHRASE }}
5 changes: 2 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ jobs:
cache: true

# Deploy an ephemeral EJBCA and SignServer for CI testing
- uses: keyfactor/EJBCA-SignServer-K8sForge@main
- uses: m8rmclaren/ejbca-signserver-k8s@main
with:
token: ${{ secrets.V2BUILDTOKEN }}
deploy-k8s: 'true'
deploy-nginx-ingress: 'true'

Expand All @@ -68,4 +67,4 @@ jobs:
- name: Run go test
run: go test -v ./...
env:
EJBCA_CSR_SUBJECT: "CN=ejbca_testacc"
EJBCA_CSR_SUBJECT: "CN=ejbca_testacc"
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# v1.3.3
# v1.4.0

## Features
* feat(ci): feat(ci): Deploy ephemeral EJBCA/SignServer server as part of CI/CD test workflow. This enables the controller to be tested against a real CA.
Expand All @@ -21,4 +21,4 @@
* feat(helm): Create Helm chart to deploy the controller to a Kubernetes or OpenShift cluster

## Fixes
* fix(controller): Add logic to read secret from reconciler namespace or Issuer namespace depending on Helm configuration.
* fix(controller): Add logic to read secret from reconciler namespace or Issuer namespace depending on Helm configuration.
5 changes: 4 additions & 1 deletion integration-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
"name": "ejbca-cert-manager-issuer",
"status": "pilot",
"link_github":false,
"description": "cert-manager external issuer for EJBCA"
"description": "cert-manager external issuer for EJBCA",
"platform_matrix": "linux/arm64,linux/amd64,linux/s390x,linux/ppc64le",
"support_level": "kf-community",
"release_dir": ""
}

0 comments on commit 55cbe56

Please sign in to comment.