Skip to content

Commit

Permalink
Use old envar definition method
Browse files Browse the repository at this point in the history
  • Loading branch information
samayer12 committed Dec 6, 2024
1 parent 0ffccc1 commit f60172f
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/deploy-zarf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@ on:
pull_request:
branches: ["main"]


env:
PEPR: ${GITHUB_WORKSPACE}/pepr
MOD_NAME: pepr-test-zarf
MOD_PATH: ${PEPR}/${MOD_NAME}
CLUSTER: $MOD_NAME

jobs:
zarf:
name: deploy test
Expand Down Expand Up @@ -47,8 +40,8 @@ jobs:
cache: "npm"
cache-dependency-path: pepr

- name: "verify envars"
run: env
- name: "set env: PEPR"
run: echo "PEPR=${GITHUB_WORKSPACE}/pepr" >> "$GITHUB_ENV"

- name: Install Pepr Dependencies
run: |
Expand All @@ -60,18 +53,29 @@ jobs:
cd "$PEPR"
npm run build:image
- name: "set env: MOD_NAME"
run: |
echo "MOD_NAME=pepr-test-zarf" >> "$GITHUB_ENV"
- name: "set env: MOD_PATH"
run: |
echo "MOD_PATH=${PEPR}/${MOD_NAME}" >> "$GITHUB_ENV"
- name: Init Pepr Module
run: |
cd "$PEPR"
npx pepr init --name "$MOD_NAME" --description "$MOD_NAME" --skip-post-init --confirm
sed -i '' 's/uuid": ".*",/uuid": "$MOD_NAME",/g' "$MOD_PATH/package.json"
sed -i '' 's/uuid": ".*",/uuid": "'$MOD_NAME'",/g' "$MOD_PATH/package.json"
- name: Build Pepr Module
run: |
cd "$MOD_PATH"
npm install "${PEPR}/pepr-0.0.0-development.tgz"
npx pepr build --custom-image pepr:dev
- name: "set env: CLUSTER"
run: echo "CLUSTER=$MOD_NAME" >> "$GITHUB_ENV"

- name: Prepare Test Cluster
run: |
k3d cluster create "$CLUSTER"
Expand Down

0 comments on commit f60172f

Please sign in to comment.