Skip to content

deps(deps-dev): bump the development-dependencies group across 1 directory with 7 updates #587

deps(deps-dev): bump the development-dependencies group across 1 directory with 7 updates

deps(deps-dev): bump the development-dependencies group across 1 directory with 7 updates #587

Workflow file for this run

name: Deploy Test
permissions: read-all
on:
workflow_dispatch:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
deploy:
name: deploy test (${{ matrix.deployer }})
runs-on: ubuntu-latest
strategy:
matrix:
deployer: [helm, zarf]
env:
MOD_NAME: pepr-test-${{ matrix.deployer }}
PEPR: ${{ github.workspace }}/pepr
CLUSTER: pepr-test-${{ matrix.deployer }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5 # v2.19.3
with:
egress-policy: audit
- name: Set up Kubernetes
uses: azure/setup-kubectl@829323503d1be3d00ca8346e5391ca0b07a9ab0d # v5.1.0
with:
version: 'latest'
- name: Install k3d
run: "curl -s --retry 5 --retry-all-errors --fail https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash"
shell: bash
- name: Install The Latest Release Version of Zarf
if: matrix.deployer == 'zarf'
uses: zarf-dev/setup-zarf@10e539efed02f75ec39eb8823e22a5c795f492ae #v1.0.1
with:
download-init-package: true
- name: Clone Pepr
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
repository: defenseunicorns/pepr
path: pepr
- name: Setup Node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 24
cache: "npm"
cache-dependency-path: pepr
- name: Install Pepr Dependencies
working-directory: ${{ env.PEPR }}
run: npm ci
- name: Build Pepr Package and Image
working-directory: ${{ env.PEPR }}
run: npm run build:image
- name: Set Dynamic Environment Variables
run: |
echo "MOD_PATH=${PEPR}/$MOD_NAME" >> "$GITHUB_ENV"
- name: Initialize Pepr Module
working-directory: ${{ env.PEPR }}
run: |
npx --yes pepr-0.0.0-development.tgz init \
--name "$MOD_NAME" \
--description "$MOD_NAME" \
--error-behavior "ignore" \
--uuid "$MOD_NAME" \
--skip-post-init \
--yes
sed -i 's/uuid": ".*",/uuid": "'"$MOD_NAME"'",/g' "$MOD_PATH/package.json"
- name: Build Pepr Module
working-directory: ${{ env.MOD_PATH }}
run: |
npm install "${PEPR}/pepr-0.0.0-development.tgz"
npx pepr build --custom-image pepr:dev
- name: Prepare Test Cluster
run: |
k3d cluster create "$CLUSTER"
k3d image import pepr:dev --cluster "$CLUSTER"
- name: Set Kubeconfig
run: echo "KUBECONFIG=$(k3d kubeconfig write "$CLUSTER")" >> "$GITHUB_ENV"
- name: Deploy Pepr Module (Helm)
if: matrix.deployer == 'helm'
working-directory: ${{ env.MOD_PATH }}
run: helm install "$MOD_NAME" "./dist/$MOD_NAME-chart" --kubeconfig "$KUBECONFIG"
- name: Initialize Zarf
if: matrix.deployer == 'zarf'
working-directory: ${{ env.MOD_PATH }}
run: zarf init --confirm
- name: Package Pepr Module (Zarf)
if: matrix.deployer == 'zarf'
working-directory: ${{ env.MOD_PATH }}
run: zarf package create --confirm "dist/"
- name: Deploy Pepr Module (Zarf)
if: matrix.deployer == 'zarf'
working-directory: ${{ env.MOD_PATH }}
run: zarf package deploy --confirm zarf-package-pepr-$MOD_NAME-amd64-0.0.1.tar.zst
- name: Check Deployment Readiness
timeout-minutes: 5
run: $GITHUB_WORKSPACE/pepr/.github/workflows/scripts/check-deployment-readiness.sh pepr-$MOD_NAME